Should work, methinks.Code:#include <string> template<typename E, typename T = std::char_traits<E>, typename A = std::allocator<E> > class my_basic_string : public std::basic_string<E, T, A> { public: /**/ trim(/**/); // your new functions here }; typedef my_string my_basic_string<char>;
Z.




Reply With Quote