I am trying to use "::" in preprocessor directive but am continously getting error for invalid preprocessor directive. can any one tell me replacement of "::"
error: pasting "::" and "xyz" does not give a valid preprocessing token
Code:
#include <iostream>
#include <string.h>
#define MACRO(arg) string(::arg)
using namespace std;
int main()
{
cout<<MACRO(xyz);
return 0;
}
error: pasting "::" and "xyz" does not give a valid preprocessing token
Comment