Original Post
Hi, I can't solve this problem: Does someone know how to solve this? Regards Tom
template<class R, class T> R lexical_cast(const T& Value)
{
std::stringstream Stream;
Stream << Value;
R Result;
Stream >> Result;
return Result;
}
template<std::string, class T> std::string lexical_cast(const T& Value)
{
std::stringstream Stream;
Stream << Value;
return Stream.str();
}
...
// Problem: Always the first function is called...
... = lexical_cast<std::string>(SomeValue);