Re: [boost] partial<> proposal

2003-02-25 Thread Thomas Wenisch
Hi all, On Tue, 25 Feb 2003, Fernando Cacciola wrote: > > "Peter Dimov" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > template void * operator new(size_t n, optional & t); > > > > Anyway, there are still problems with this: operator new is called _before_ > the T is cons

Re: [boost] partial<> proposal

2003-02-24 Thread David Abrahams
"Philippe A. Bouchard" <[EMAIL PROTECTED]> writes: > I would like to propose partial<> when you wish to postpone an object's > construction: > http://groups.yahoo.com/group/boost/files/shifted_ptr/partial.hpp How is this different from the recently-accepted optional class template? -- Dave

[boost] partial<> proposal

2003-02-24 Thread Philippe A. Bouchard
Greeting, I would like to propose partial<> when you wish to postpone an object's construction: http://groups.yahoo.com/group/boost/files/shifted_ptr/partial.hpp The partial object is aligned like an object of type T and reserves enough memory space to hold it, of course. partial<> uses