Re: default value error converting from GCC++ to CW9

2003-06-12 Thread Tilo Christ
Hi! myClass::function1(MemPtr var, Boolean ok = false) the compile errors out. If I remove the default value of false it will compile. How do I fix this problem? The above makes the impression as if you were declaring the default in the method implementation, is this right? So does it look

RE: default value error converting from GCC++ to CW9

2003-06-11 Thread Sadanandam O.
I guess CW9 does support default parameters. If that doesn't work for u , u can use function overloading. myClass::function1(MemPtr var, Boolean ok) { ok = false; //Your code follows } myClass::function1(MemPtr var) { } Regards Sadanand. -Original Message- From:

Re: default value error converting from GCC++ to CW9

2003-06-11 Thread Ben Combee
HI, I'm in the process of converting a large project from GCC C++ to CW9. I'm running into the compiler error about error with the default value eg: myClass::function1(MemPtr var, Boolean ok = false) the compile errors out. If I remove the default value of false it will compile. How do I fix

Re: default value error converting from GCC++ to CW9

2003-06-10 Thread Sherry Lane Razon
i guess you have to declare the default value inside the function. myClass::function1(MemPtr var, Boolean ok) { ok = false; your code follows... } ... or better yet make the ok variable global. hope that helps. Sherry At 10:08 PM 6/10/03 -0600, you wrote: HI, I'm in the process