Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2160
Collapse the table of content
Expand the table of content

Compiler Error C2160

'##' cannot occur at the beginning of a macro definition

A macro definition began with a token-pasting operator (##).

The following sample generates C2160:

// C2160.cpp
// compile with: /c
#define mac(a,b) #a   // OK
#define mac(a,b) ##a   // C2160

Community Additions

ADD
Show:
© 2015 Microsoft