Macro does not compile.

clive@emultek.co.il clive@emultek.co.il
Mon Jun 14 06:53:00 GMT 1999


The following 'simple' macro does not compile(ver 2.91.66). It compiles on
every other compiler I have tried it on.


#define DECLARE_CLASS(n)                                       \
class MyClass##n                                 \
{                                                              \
public:                                                        \
     MyClass##n (int i);                                       \
     ~MyClass##n (void);                                             \
private:                                                       \
     char *_dum;                                              \
};

DECLARE_CLASS(10)
DECLARE_CLASS(11)




More information about the Gcc-bugs mailing list