is it placement new?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wenjie

    is it placement new?

    Hello,


    I read that the placement new looks like:
    void* SomeClass::oper ator new(size_t, void* location)
    {
    return location;
    }

    If for some reason, I overload the operator new as:
    void* SomeClass::oper ator 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,
Working...