From: Stéphane Bronsart (stephane.bronsart_at_[hidden])
Date: 2002-07-01 08:59:50
To convert a string to an int, the lexical_cast form boost library is great.
But if do a call like this :
signed short int i = lexical_cast<signed short int>("60000") no exception is
i is assigned a value of -5536
It is possible to catch some error ? How ?
If I have to scan the string before calling lexical_cast, it is not so
Is the use of stringstream (see implementation of lexical_cast) not to
What say boost about that ?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk