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

Compiler Error C2818

application of overloaded 'operator ->' is recursive through type 'type'

A redefinition of the class member access operator contains a recursive return statement. To redefine the -> operator with recursion, you must move the recursive routine to a separate function called from the operator override function.

© 2016 Microsoft