G
Gernot Frisch
This code:
class A
{
#define MK_OPERATOR_CL(zz) \
DGStr& operator zz=(const DGStr& a); \
DGStr& operator zz=(int a); \
DGStr& operator zz=(float a); \
DGStr& operator zz=(double a);
MK_OPERATOR_CL(+)
};
gives:
parse error before `)'
declaration of `operator +' as non-function
with gcc. MSVC compiles w/o problem. Any idea?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
class A
{
#define MK_OPERATOR_CL(zz) \
DGStr& operator zz=(const DGStr& a); \
DGStr& operator zz=(int a); \
DGStr& operator zz=(float a); \
DGStr& operator zz=(double a);
MK_OPERATOR_CL(+)
};
gives:
parse error before `)'
declaration of `operator +' as non-function
with gcc. MSVC compiles w/o problem. Any idea?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com