|
Boost Users : |
Subject: Re: [Boost-users] boost::trim throwing std::bad_cast exeption with custom basic_string
From: Arash Abghari (arash.abghari_at_[hidden])
Date: 2011-01-23 10:52:45
On Sun, 23 Jan 2011 10:08:40 +0200
Igor R <boost.lists_at_[hidden]> wrote:
> > typedef basic_string<int> ustring;
> > ustring str(2,0x61);
> > boost::trim(str);
> >
> > this is throwing an exception. I tried it with boost 1.40 and 1.42.
>
> It doesn't throw if compiled with MSVC10.
>
> > BTW, which version of boost you are testing on?
>
> 1.45
It is still throwing an exception with boost 1.45. Since it's working
fine with MSVC10 then something must be wrong with gcc. Here are the
combinations which I tested so far:
gcc 4.3.4 , boost 1.40
gcc 4.4.5 , boost 1.42 and 1.45
Any help will be appriciated
Thanks
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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