$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Stéphane Bronsart (stephane.bronsart_at_[hidden])
Date: 2002-07-01 08:59:50
Hi,
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
throw !
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
useful...
Is the use of stringstream (see implementation of lexical_cast) not to
heavy ?
What say boost about that ?
Thanks.
Steph.