W
Wenjie
Hello,
I read that the placement new looks like:
void* SomeClass:perator new(size_t, void* location)
{
return location;
}
If for some reason, I overload the operator new as:
void* SomeClass:perator 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,
I read that the placement new looks like:
void* SomeClass:perator new(size_t, void* location)
{
return location;
}
If for some reason, I overload the operator new as:
void* SomeClass:perator 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,