[Boost-bugs] [Boost C++ Libraries] #7578: boost::any missing free swap function

Subject: [Boost-bugs] [Boost C++ Libraries] #7578: boost::any missing free swap function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-26 22:00:11


#7578: boost::any missing free swap function
------------------------------+---------------------------------------------
 Reporter: dave | Owner: nasonov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: any
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Given that a free swap function is the "official" interface used by
 generic algorithms, this is a rather shocking omission (though I know the
 status of swap wasn't settled at the time of any's design). Suggestion:
 add

 {{{
 friend void swap(any& x, any& y) { x.swap(y); }
 }}}

 to the body of any and update the docs accordingly.

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