Adding types to the std namespace
c++, namespaces, stl
Solution
No ... part of the point of a namespace is to prevent name collisions on upgrade.
If you add things to the std namespace, then your code might break with the next release of the library if they decide to add something with the same name.
Problem
Is it acceptable to add types to the `std` namespace. For example, I want a TCHAR-friendly string, so is the following acceptable? ``` #include <string> namespace std { typedef basic_string<TCHAR> tstring; } ``` Or should I use my own namespace?