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: Danny Wong [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 9:38 AM
To: Palm Developer Forum
Subject: default value error converting from GCC++ to CW9

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 this problem?

thanks

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to