Velocity Reviews

Velocity Reviews (
-   C++ (
-   -   is it placement new? (

Wenjie 06-26-2003 11:16 AM

is it placement new?

I read that the placement new looks like:
void* SomeClass::operator new(size_t, void* location)
return location;

If for some reason, I overload the operator new as:
void* SomeClass::operator new(size_t, unsigned int locationIndex)
Am I defining another placement new? Or what to call it,
"my overloaded operator new"?

BTW, should I #include <new> for my overloaded operator new?
I didn't but it compiles (on VC++6.0).

Thanks and best regards,

All times are GMT. The time now is 12:30 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.