Compiler Error C2808
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C2808

unary 'operator operator' has too many formal parameters

The unary operator has a nonvoid parameter list.

The following sample generates C2808:

// C2808.cpp
// compile with: /c
class X {
   X operator! ( X );   // C2808 nonvoid parameter list
   X operator! ( void );   // OK
© 2016 Microsoft