Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4820: any swaps inefficiently
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-07 16:32:03
#4820: any swaps inefficiently
-------------------------------------+--------------------------------------
Reporter: jonathandodd@⦠| Owner: nasonov
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: any
Version: Boost 1.44.0 | Severity: Optimization
Resolution: invalid | Keywords:
-------------------------------------+--------------------------------------
Comment (by jonathandodd@â¦):
To clarify, when I run this there are in fact 5 copy constructor calls, 3
of which were generated by swap.
I have been assured that this is just me not turning on compiler
optimisations, or not using boost::swap. However, even with the -o3 switch
in gcc, and even with boost::swap, I still get 3 copy constructor calls.
Since the best thing to do is just to swap over the pointers, I expected
none.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4820#comment:2> 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:04 UTC