Compiler Error C2722
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2722.
operator' : illegal following operator command; use 'operator operator'
An operator statement redefines ::new or ::delete. The new and delete operators are global, so the scope resolution operator (::) is meaningless. Remove the :: operator.
Show: