Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7749: In Assignment operator, argument should be passed by reference.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-29 07:01:11
#7749: In Assignment operator, argument should be passed by reference.
-------------------------------------------------+--------------------------
Reporter: Gaurav Gupta <g.gupta@â¦> | Owner: joaquin
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: multi_index
Version: Boost 1.52.0 | Severity: Problem
Resolution: invalid | Keywords:
-------------------------------------------------+--------------------------
Changes (by joaquin):
* status: new => closed
* resolution: => invalid
Comment:
This manner of implementing assignment operator is not a bug. It's
described in Sutter and Alexandrescu's
[http://www.gotw.ca/publications/c++cs.htm C++ Coding Standards] and more
briefly on the
[http://en.wikipedia.org/wiki/Assignment_operator_%28C%2B%2B%29
Wikipedia].
BTW, your patch is invalid: it'd rule out assignment from a const object.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7749#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC