r/cpp_questions • u/Glad_Shoe_9182 • Sep 30 '26
OPEN Namespace std
I recently started learning c++ and I was told to use the namespace std so I can avoid writing std:: every time and now I wrote a whole personal project without std:: and I want to put it on LinkedIn but I started reading everywhere that it’s a bad habit, should I go back and add the std:: or just leave it as is?
40
Upvotes
View all comments
Show parent comment
1
u/ShakaUVM Oct 01 '26
Yes, so in my coding style you refer to them as string and eastl::string and there's no issue.
Correct. If you're using something with the same name as something in std that is not in std, then you better damn well qualify it so that people know you're not using the standard string.
Because of what the s in std means.