- telnet://htc.zapto.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* fallback */ | |
template<class T> | |
T lexical_cast(const char* str) | |
{ | |
static std::istringstream ss; /* reusing has severe (positive) impact on performance */ | |
T value; | |
ss.str(str); | |
ss >> value; | |
ss.clear(); | |
return value; |