Boost C++ Libraries: Ticket #9362: Non-const operator() don't compile https://svn.boost.org/trac10/ticket/9362 <p> 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). </p> <p> I've attached a test case and compilation errors from GCC 4.8.1 in C++03 and C++11 modes. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9362 Trac 1.4.3 Andrey Semashev Mon, 11 Nov 2013 03:39:48 GMT attachment set https://svn.boost.org/trac10/ticket/9362 https://svn.boost.org/trac10/ticket/9362 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">phoenix_non_const.cpp</span> </li> </ul> <p> A test case to reproduce the problem. </p> Ticket Andrey Semashev Mon, 11 Nov 2013 03:40:21 GMT attachment set https://svn.boost.org/trac10/ticket/9362 https://svn.boost.org/trac10/ticket/9362 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">phoenix_non_const_cxx03.txt</span> </li> </ul> <p> GCC 4.8.1 errors in C++03 mode. </p> Ticket Andrey Semashev Mon, 11 Nov 2013 03:40:43 GMT attachment set https://svn.boost.org/trac10/ticket/9362 https://svn.boost.org/trac10/ticket/9362 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">phoenix_non_const_cxx11.txt</span> </li> </ul> <p> GCC 4.8.1 errors in C++11 mode. </p> Ticket