It's ::operator new. operator new is responsible for first allocating
memory then calling the new operator.

Matthew Gidden
Nuclear Energy University Programs Fellow
The University of Wisconsin -- Madison
Ph. 225.892.3192
Fax 608.263.7451


On Thu, Jul 25, 2013 at 11:08 AM, Anthony Scopatz
<notifications@github.com>wrote:

> In src/Core/Utility/Event.cpp:
>
> > @@ -37,3 +39,25 @@ const Event::Vals& Event::vals() {
> >    return vals_;
> >  }
> >
> > +//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > +void* Event::operator new(size_t size) {
> > +  if (size != sizeof(Event))
> > +    return ::operator new(size);
>
> Just for my edification, does one have to do ::operator new or can one
> get away with ::new?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cyclus/cyclus/pull/523/files#r5401896>
> .
>