[Boost-bugs] [Boost C++ Libraries] #9668: insert_check and callees should pass KeyValueCompare by const reference

Subject: [Boost-bugs] [Boost C++ Libraries] #9668: insert_check and callees should pass KeyValueCompare by const reference
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-14 23:58:37


#9668: insert_check and callees should pass KeyValueCompare by const reference
------------------------------+--------------------------
 Reporter: vinnie.falco@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: intrusive
  Version: Boost 1.55.0 | Severity: Optimization
 Keywords: |
------------------------------+--------------------------
 '''boost::intrusive::set::insert_check''' passes ''KeyValueCompare'' by
 value. And then it makes another copy when it passes it by value to the
 underlying tree_type. As ''KeyValueCompare'' could be expensive to copy,
 it seems needless to pass it by value. It should be passed by const
 reference. This applies to all containers with ''insert_check''.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9668>
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:15 UTC