Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9003: Compiler error when trying to return and assign a vector of non-copyables but movables from a function in C++03
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-11 09:44:19
#9003: Compiler error when trying to return and assign a vector of non-copyables
but movables from a function in C++03
--------------------------------------------+------------------------
Reporter: Adam Romanek <romanek.adam@â¦> | Owner: igaztanaga
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: container
Version: Boost 1.54.0 | Severity: Problem
Resolution: wontfix | Keywords:
--------------------------------------------+------------------------
Changes (by igaztanaga):
* status: new => closed
* resolution: => wontfix
Comment:
Reviewing old bugs sorry for the huge delay. Replying to document the
existing workaround to future bug readers. The problem is related to move
emulation as explained in:
http://www.boost.org/doc/libs/1_61_0/doc/html/move/move_return.html
Changing the generation function to:
{{{
nc_vector create() {
nc_vector nc_temp;
return BOOST_MOVE_RET(nc_vector, nc_temp);
}
}}}
workarounds the problem.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9003#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:20 UTC