T
Thormod Johansen
Hi,
What is the correct syntax for defining a templated function inside a
template class? Example:
template <class T>
class myClass {
private:
T data;
public:
template <class InputType>
int myFunc(InputType arg) {
}
};
To this my compiler says "declaration terminated incorrectly" at the line
containing "template <class InputType>".
Thanks in advance.
What is the correct syntax for defining a templated function inside a
template class? Example:
template <class T>
class myClass {
private:
T data;
public:
template <class InputType>
int myFunc(InputType arg) {
}
};
To this my compiler says "declaration terminated incorrectly" at the line
containing "template <class InputType>".
Thanks in advance.