Subject: [Boost-bugs] [Boost C++ Libraries] #9362: Non-const operator() don't compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-11 03:39:18
#9362: Non-const operator() don't compile
------------------------------+---------------------
Reporter: andysem | Owner: theller
Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
------------------------------+---------------------
Using phoenix::bind with a user-defined function object with non-const
operator() results in compile errors, even though the operator could be
called. It seems that at some point Boost.Phoenix adds const qualifier to
the bound function which results in compilation failure either when
result_of is invoked (in C++11), or when the function object is called (in
C++03).
I've attached a test case and compilation errors from GCC 4.8.1 in C++03
and C++11 modes.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9362> 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