Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1910: function::swap should avoid doing memory allocations
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-07 21:20:56
#1910: function::swap should avoid doing memory allocations
---------------------------+------------------------------------------------
Reporter: niels_dekker | Owner: dgregor
Type: Bugs | Status: closed
Milestone: Boost 1.36.0 | Component: function
Version: Boost 1.35.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------+------------------------------------------------
Comment(by niels_dekker):
Now that boost::function internally has a ''move_assign'' function, I
think that the performance of its assignment operators can also be
improved significantly, by calling ''move_assign'', instead of ''swap''.
Please have a look at the attached function_assignment.patch
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/1910#comment:7> 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