Boost logo

Boost :

Subject: Re: [boost] [lexical_cast] exception type for overflow
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2012-10-06 16:28:36


2012/10/4 Alexey Tkachenko <iskaspb_at_[hidden]>:
> Hi Jochen,
> There is a lot of code which expects that failure to lexical cast will result with bad_lexical_cast exception. I don't think it's a good idea to change this behavior. Thanks!
>
> Regard,
> Alexey Tkachenko.

Alexey is right. But I can create an exception that derives from
bad_lexical_cast, for example bad_lexical_cast_overflow. However it is
a huge amount of work (it requires implementation of all float types
casts in lexical_cast library without streams and C libraries usage
and rewriting about 1k of code lines). I`ll keep in mind your
proposal, but it won't be implemented in nearest releases.

-- 
Best regards,
Antony Polukhin

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