$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2005-02-15 13:54:27
Jody Hagins <jody-boost-011304_at_[hidden]> 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