H
Helge Kruse
Hello,
I want to implement a function template separated from the
declaration:
class X
{
public:
template<class T> void operator << (T);
};
template<class T> void X:perator << (T t)
{
}
I got the error:
binary '<<' : 'class X' does not define this operator or a conversion
to a type acceptable to the predefined operator
When I implement the function inside the class X, everything is OK.
How can this be solved, when the function "operator <<(T)" must be
outside of the class X?
Compiler is Microsoft Visual C++ for Windows CE 3.0.
Regards,
Helge
I want to implement a function template separated from the
declaration:
class X
{
public:
template<class T> void operator << (T);
};
template<class T> void X:perator << (T t)
{
}
I got the error:
binary '<<' : 'class X' does not define this operator or a conversion
to a type acceptable to the predefined operator
When I implement the function inside the class X, everything is OK.
How can this be solved, when the function "operator <<(T)" must be
outside of the class X?
Compiler is Microsoft Visual C++ for Windows CE 3.0.
Regards,
Helge