
6 Mar
2009
6 Mar
'09
9:21 p.m.
Fernando Cacciola wrote:
Hi Arno, ... Thus, until move semantics are practically usable (whether via Boost.Move or C++0x) I would either add the three functions as member functions, or just your optional_assign() as a free function, but not two members and one free standing.
What do you think?
FWIW, my vote would go to your first option, adding optional_assign_to(T&), optional_move_to(T&), and optional_swap(T&) as member functions to optional<T>. But of course, my name isn't Arno! Kind regards, Niels