mercredi 31 juillet 2019

Prevent space after pre-processor macro replacement

I am curious if it is possible to eliminate the space that pre-processor inserts/retains (?) after replacing macro token

//Code

#define s std::

void PrintMatches2(std::string str, s regex reg)



//Output

void PrintMatches2(std::string str, std:: regex reg)

/*---------------------------------------^----------Want to eliminate space here*/

TIA

Aucun commentaire:

Enregistrer un commentaire