Compiler Error C2673
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 C2673.
function' : global functions do not have 'this' pointers
A global function tried to access this.
The following sample generates C2673:
// C2673.cpp
int main() {
this = 0; // C2673
}
Show: