Skip to content

Namespaces #50

@r-barnes

Description

@r-barnes

DGGRID has a few namespace issues that make it a little difficult to work with.

dgconstants.h, for instance, defines a M_2PI in the global namespace. This has caused conflicts with M_2PI from <math.h>. While we can remove the M_2PI constant in #48, the issue wouldn't arise of DGGRID was entirely wrapped in namespace dgg {}.

There are also header files containing using namespace within their global namespaces - this is considered a bad practice (see this for explanations).

At some point it might be nice to clean up these namespace issues in dglib to make it easier to integrate into other code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions