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: | 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)
Change History (2)
by , 5 years ago
Attachment: | boost-move-if-not-lvalue_reference-fix.patch added |
---|
Patch confirmed to work for us.