$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.