> From: Jeff Ishaq [mailto:[EMAIL PROTECTED]]
> It appears that the bottom line is this - you can't override 
> a placement new operator using CW6.

Not true, it works for me.  There's nothing wrong with the compiler.

> If you attempt to overload the new operator with a 'place' argument,
> as such:
>   void* operator new( size_t size, void* place ) { return place; }
> I get "illegal 'operator' declaration."

The problem is the size_t typedef.  Either it's undefined or it's not
defined exactly as 'unsigned long'.  This causes the exact error message
reported above.

So to fix this, either add or #include a proper typedef for size_t, or just
use some other equivalent of 'unsigned 32 bit integer' in in the operator
implementation.

-slj-


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to