Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   is it placement new? (http://www.velocityreviews.com/forums/t267754-is-it-placement-new.html)

Wenjie 06-26-2003 11:16 AM

is it placement new?
 
Hello,


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.