This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with macro params containing commas


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 ans 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: jean-eric.cuendet@rptec.ch
http://www.rptec.ch
--------------------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]