
19 Nov
2011
19 Nov
'11
1:29 a.m.
On 18 November 2011 15:16, Andrzej Krzemienski <akrzemi1@gmail.com> wrote:
3. T is neither copyable nor moveable -- it is like a scope guard, or boost::scoped_ptr. In this case optional<T> still provides assignment by making a "pseudo destructor call" followed by a call to placement new. -- but this gives only basic guarantee.
The guarantee is strong if the placement delete/new are marked noexcept, isn't it? -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404