from: http://msdn2.microsoft.com/en-us/library/k4fyzf6a(vs.80).aspx
Visual C++ Concepts: Building a C/C++ Program
Compiler Error C2801
Error Message
'operator operator' must be a non-static member
The following operators can be overloaded only as nonstatic members:
-
Assignment =
-
Class member access ->
-
Subscripting []
-
Function call ()
Possible C2801 causes:
-
Overloaded operator is not a class, structure, or union member.
-
Overloaded operator is declared static.
-
The following sample generates C2801: