Re: [Boost-bugs] [Boost C++ Libraries] #9644: Containers and move-only elements w/Move Emulation

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9644: Containers and move-only elements w/Move Emulation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-17 19:18:58


#9644: Containers and move-only elements w/Move Emulation
---------------------------------------------+------------------------
  Reporter: John M. DÅ‚ugosz <mpbecey7gu@…> | Owner: igaztanaga
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: container
   Version: Boost 1.49.0 | Severity: Problem
Resolution: wontfix | Keywords:
---------------------------------------------+------------------------
Changes (by igaztanaga):

 * status: new => closed
 * resolution: => wontfix

Comment:

 This is a very old bug, sorry for missing it. Boost.Move has its
 limitations, and Boost.Container can't do anything with this. But at least
 in old compilers like MSVC-7.1 recent BOOST_MOVE_RET makes this example
 work:

 {{{

 #include <boost/container/vector.hpp>

 //A non-copyable type
 #include "movable_int.hpp"

 typedef boost::container::vector<boost::container::test::movable_int>
 VecType;

 VecType some_other_vec;

 VecType foo()
 {
    return BOOST_MOVE_RET(VecType, some_other_vec);
 }

 int main()
 {
    VecType x= foo();
    return 0;
 }

 }}}

 Sadly there is little Boost.Container can do if this Boost.Move workaround
 does not work in your compiler. I hope this helps.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9644#comment:1>
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:17 UTC