22 Jan
2011
22 Jan
'11
6:08 p.m.
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.