
25 Mar
2010
25 Mar
'10
8 p.m.
Rene Rivera wrote:
Tom Brinkman wrote:
boost::lexical_cast_no_throw()
Or..
template <typename T, typename S> T lexical_cast(const S & arg, const T & error_default_value);
FYI, IIRC, there is a String Convert library by Vladimir Batov in the review queue that addresses short comings of lexical_cast, providing [no]throw variations along with the ability to specify a default value. There was significant discussion in previous threads leading to this library development. Jeff