I have a custom basic_string as follows:
typedef basic_string<unsigned int> ustring;
so if I pass an instance of ustring to boost:trim it throws an std::bad_cast exception.
ustring str; boost::trim(str);
It doesn't raise exceptions on MSVC10, so I guess the problem is in the standard library implementation you use. Thanks for your reply. I think I made a mistake on providing with the example. It doesn't throw an exception if str is empty. Could you try
On Sat, 22 Jan 2011 20:08:48 +0200
Igor R
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users