[Boost-bugs] [Boost C++ Libraries] #2312: intrusive_ptr::operator= should have by-value argument

Subject: [Boost-bugs] [Boost C++ Libraries] #2312: intrusive_ptr::operator= should have by-value argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-10 09:16:41


#2312: intrusive_ptr::operator= should have by-value argument
--------------------------+-------------------------------------------------
 Reporter: niels_dekker | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: None
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 When a copy assignment operator is implemented simply by doing copy-and-
 swap, it should pass its argument by value, instead of doing the copy
 inside the body of the function, to allow the compiler to do copy elision.
 As was discussed at the Boost developer mailing list,
 [http://lists.boost.org/Archives/boost/2008/09/142106.php Improving the
 assignment operators of various Boost types].

 So please consider the attached patch.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2312>
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:49:58 UTC