Boost logo

Boost :

Subject: Re: [boost] [lexical cast] Performance improvements
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2011-03-20 15:46:11


>Just one quick question, does your code have the same behaviour as the existing Lexical Cast when casting out of bounds (int -> unsigned int, int -> short, unsigned int -> int)?
>
>Chris

Yes. It has the same behaviour.
For checking bounds it uses boost::numeric::conversion_traits from
<boost/numeric/conversion/conversion_traits.hpp>

Antony


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