STLport
How to use both standard STL and STLport ?
#define _STLP_DONT_REDEFINE_STD #define _STLP_WHOLE_NATIVE_STD #include <string> void foo() { std::string std_str("std"); stlport::string stlport_str("stlport"); stlport_str.append(std_str.begin(), std_str.end()); // Following is wrong because there is no assignment // operator for stlport::string on std::string. //std_str = stlport_str; }
How to use STLport with GCC ?
Only include STLport includes with -I/usr/include/stlport and link with -lstlport