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

using namespace std in header file #1

Open
FalcoGer opened this issue Nov 24, 2019 · 1 comment
Open

using namespace std in header file #1

FalcoGer opened this issue Nov 24, 2019 · 1 comment

Comments

@FalcoGer
Copy link

It is horrible practice to put

using namespace std;

into header files. It's bad practice altogether to use namespace std, but using namespace is a very bad idea in header files. Because you don't know where it might end up being included. And since #include is basically a code copy and paste, very bad results may occur.

@ayed42
Copy link

ayed42 commented Aug 26, 2020

Facebook for iOS
‏١٢ أغسطس‏، الساعة ‏١١:٣٩ م‏

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

2 participants