Boost logo

Boost :

From: remi.chateauneu_at_[hidden]
Date: 2007-11-28 17:38:36


Hi,

Are there lexical specializations such as (approximately):
template<long, std::string>
long lexical_cast( const std::string & refStr )
{
    return atoi( refStr.c_str() );
}

This is of course less strict and clean as the general templates, but
may be faster, with smaller code, given there are very fast
implementations of atoi. This can be easily generalized to strtod() etc...

Thanks.


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