Subject: [Boost-bugs] [Boost C++ Libraries] #9363: Reference forwarding in phoenix::bind does not work in C++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-11 04:03:05
#9363: Reference forwarding in phoenix::bind does not work in C++11
------------------------------+---------------------
Reporter: andysem | Owner: theller
Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
------------------------------+---------------------
When a user-defined function accepts a non-const reference as an argument,
this argument is provided as a const reference by phoenix::bind, even
though phoenix::bind is invoked with a non-const lvalue. This only appears
in C++11 mode, in C++03 this works as expected.
I've attached the test case and compile errors from GCC 4.8.1.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9363> 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:14 UTC