[lexical_cast] Specializations

28 Nov
2007
28 Nov
'07
10:38 p.m.
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.

29 Nov
29 Nov
10:46 a.m.
remi.chateauneu <at> gmx.de <remi.chateauneu <at> gmx.de> writes:
Are there lexical specializations such as (approximately): template<long, std::string> long lexical_cast( const std::string & refStr ) { return atoi( refStr.c_str() ); }
Some specialisations will be in 1.35. http://accu.org/index.php/journals/1375 -- Alexander
6403
Age (days ago)
6404
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexander Nasonov
-
remi.chateauneu@gmx.de