Associating C++ new with constructor

Daniel Jacobowitz drow@false.org
Thu Feb 15 13:35:00 GMT 2007


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



More information about the Gdb mailing list