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

Use full namespace prefix instead of "using" statement #269

Open
UVCAD opened this issue Feb 26, 2019 · 0 comments
Open

Use full namespace prefix instead of "using" statement #269

UVCAD opened this issue Feb 26, 2019 · 0 comments

Comments

@UVCAD
Copy link

UVCAD commented Feb 26, 2019

There are many places use "using" statement to import namespace, it's easy to ruin the namespace. It's recommended to use full namespace prefix. The best practice is to use full namespace, remove all such code likes these:
using namespace Go;
using std::vector;
using std::swap;
using std::max;
using std::min;
using std::pair;
using std::make_pair;
using std::streamsize;
using std::endl;

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