
15 Feb
2005
15 Feb
'05
8:02 p.m.
On Tue, 15 Feb 2005 21:33:59 +0200, Peter Dimov <pdimov@mmltd.net> wrote:
David Abrahams wrote:
Jody Hagins <jody-boost-011304@atdesk.com> writes:
It seems to me that implementing the canonical assignment operator would work fine...
optional & operator=(optional const & rhs) { optional tmp(rhs); optional_swap(*this, tmp); return *this; }
Why not: optional& operator=(optional rhs) { optional_swap(*this, rhs); return *this; } ? Bruno