Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use 'using namespace' in C++ header files #24

Open
johnwason opened this issue Dec 9, 2022 · 0 comments
Open

Don't use 'using namespace' in C++ header files #24

johnwason opened this issue Dec 9, 2022 · 0 comments

Comments

@johnwason
Copy link

Some header files have using namespace:

https://github.com/rpiRobotics/linear-subproblem-solutions/blob/fd35b3b4abb3cb8baa85b1e62f0011f424fc8d26/cpp/%2Bsubproblem_setups/sp_2E.h#L14

Don't use using namespace in header files. This pollutes any file that includes the header, and can cause unpredictable results. Fully qualify instead, for example use Eigen:;Vector3d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant