This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problem with macro params containing commas
- From: Jean-Eric Cuendet <jec at rptec dot ch>
- To: gcc at gcc dot gnu dot org
- Date: 14 Aug 2003 18:11:37 +0200
- Subject: Problem with macro params containing commas
- Organization: Riskpro Technologies SA
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
--------------------------------------------------------