Compiler Error C2161
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 C2161.
cannot occur at the end of a macro definition
A macro definition ended with a token-pasting operator (##).
The following sample generates C2161:
// C2161.cpp // compile with: /c #define mac(a,b) a // OK #define mac(a,b) a## // C2161
Show: