[lexical_cast] Specializations
29 Nov
2007
29 Nov
'07
1:38 a.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
1:46 p.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
6547
Age (days ago)
6548
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexander Nasonov -
remi.chateauneu@gmx.de