[Dev-C++] Problem with macro params containing commas
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jean-Eric C. <je...@rp...> - 2003-08-14 16:21:16
|
Hi, I'd like to pass params that contains commas to a macro. But the macro processor think that the passed param is 2 parts (separated by the inner macro). It's normal, but not what I want... Is there a way to do it differently? Thanks -jec #define MACRO_PARAM_1 <class First,class Second> #define MACRO_PARAM_2 Fn_Pair<First,Second> FN_DEFINE_TEMPLATE_CLASS_METHODS( MACRO_PARAM_1, MACRO_PARAM_2, Fn_Kind, Fn_Pair_CLASS_ID ); That doesn't work. gcc says that FN_DEFINE_TEMPLATE_CLASS_METHODS requires 4 parameters and that 6 are passed! -- Jean-Eric Cuendet Riskpro Technologies SA Av du 14 avril 1b, 1020 Renens Switzerland Principal: +41 21 637 0110 Fax: +41 21 637 01 11 Direct: +41 21 637 0123 E-mail: jea...@rp... http://www.rptec.ch -------------------------------------------------------- |