David Abrahams wrote: [...]
>> Example: >> optional<int> i; >> >> new (i) int(17); > > Which copy ctor are you referring to? > And why do we want to prevent copy ctor usages? Because optional<> will be able to handle types without copy constructors (this was the main purpose of partial<> in fact). I was referring to the copy constructor of optional<>'s template parameter. class A { A(A const &); public: A(int) {} }; int main() { optional<A> o(A(9)); } Philippe A. Bouchard _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost