Re: Associating C++ new with constructor

Daniel Jacobowitz
2007-02-15T11:50:27Z

On Wed, Feb 14, 2007 at 11:35:16PM -0800, Ross Boylan wrote:
> Does that have any chance of working with any generality?

No, none. The compiler can do an arbitrary amount of work between the
two calls. They can end up with branches in between, or a call to new
could be used to conditionally create one of two objects that happen
to have the same size.

--
Daniel Jacobowitz
CodeSourcery