Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::trim throwing std::bad_cast exeption with custom basic_string
From: Igor R (boost.lists_at_[hidden])
Date: 2011-01-22 13:08:48


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net