Tech Off Post

Single Post Permalink

View Thread: Should I make namespace std global?
  • User profile image

    I usually do a "using namespace std" in source files (unless they are really small) and std::* in header files.  It doesn't compile anything extra, just makes your life easier.  The only way it can be bad is if you have custom classes with the same names as the STL classes, in which case you will have to fully use std::* to declare one.