quote:
Originally posted by feline
i dont follow. this function takes a std::string as a parameter, not a template.
could you post a few more lines of code, so i can follow what you are doing?
Well, the function parameter is a std::string, but since the function itself is a template, it needs a template parameter.
Sample:
// Definition of the template function
template<typename T> T FromStringTo( const std::string& text);
// using it
long value = FromStringTo<long>("99");
As you can see, you have the template parameter in the angle brackets. But when inserting the function name, VAX does not care for them, and inserts only FromStringTo(|).
Clearer now?