[Boost-bugs] [Boost C++ Libraries] #13131: move_if_not_lvalue_reference undefined under BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE

Subject: [Boost-bugs] [Boost C++ Libraries] #13131: move_if_not_lvalue_reference undefined under BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-07-21 17:03:02


#13131: move_if_not_lvalue_reference undefined under
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE
------------------------------+---------------------------
 Reporter: ryan.johnson@… | Owner: Ion Gaztañaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: move
  Version: Boost 1.60.0 | Severity: Regression
 Keywords: |
------------------------------+---------------------------
 Defining BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE causes the following program
 to fail compilation for boost-1.60.0 and newer:

         #define BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE

         #include <boost/thread.hpp>

         int main() { }

 NOTE: this regression was reported over a year ago on the mailing lists
 but the message received no reply and nobody ever filed a bug.
 https://lists.boost.org/boost-users/2015/12/85457.php

 It appears the fix is simple: move the definition of
 move_if_not_lvalue_reference() outside the #ifdef for
 BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE. Untested patch attached.

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13131>
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-07-21 17:07:01 UTC