I think you have to specify the type T. Template functions, I believe, can only deduce what T is based on the arguments passed.
The compiler does not know if you want to return an integer or float based on having std::string as an argument, for example.
int x = htot<int>("0x0F");
dx9_programmer
Junior Poster in Training
61 posts since Mar 2011
Reputation Points: 22
Solved Threads: 12
Skill Endorsements: 0
Question Answered as of 8 Months Ago by
dx9_programmer