Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-03-21 16:06:10


Terje Slettebø <tslettebo_at_[hidden]> writes:

>> C:\Program Files\Boost\boost_1_30_0\boost/lexical_cast.hpp(74) : warning
> C4512: 'no_lexical_conversion<class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> >,long>' : assignment
> operator could not be generated
>
> This is due to that it stores a const std::string object, describing the
> exception

Are you saying that you have defined an exception with a std::string
member? That's VERY bad! Throwing that exception can lead directly
to termination!

What's wrong with char const*?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk