Opened 5 years ago

Last modified 5 years ago

#13131 new Bugs

move_if_not_lvalue_reference undefined under BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE

Reported by: ryan.johnson@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: move
Version: Boost 1.60.0 Severity: Regression
Keywords: Cc:

Description

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.

Attachments (1)

boost-move-if-not-lvalue_reference-fix.patch (977 bytes ) - added by ryan.johnson@… 5 years ago.

Download all attachments as: .zip

Change History (2)

by ryan.johnson@…, 5 years ago

comment:1 by martin.bravenboer@…, 5 years ago

Patch confirmed to work for us.

Note: See TracTickets for help on using tickets.