
15 Feb
2005
15 Feb
'05
6:54 p.m.
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; }
I wish people would stop calling it that. It's easy, but it's overkill.
I know it is has a little more overhead
Yes. -- Dave Abrahams Boost Consulting www.boost-consulting.com