Re: [Boost-bugs] [Boost C++ Libraries] #10864: Boost 1.57 + Xcode 6: function/lamba incompatibility

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10864: Boost 1.57 + Xcode 6: function/lamba incompatibility
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-10 19:03:24


#10864: Boost 1.57 + Xcode 6: function/lamba incompatibility
-------------------------------+---------------------------
  Reporter: nat@… | Owner: no-maintainer
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: lambda
   Version: Boost 1.57.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by nat@…):

 The following is a viable workaround:

 {{{
 #include <iostream>
 #include <boost/phoenix/core/argument.hpp>
 #include <boost/phoenix/operator/bitwise.hpp>
 #include <boost/function.hpp>

 typedef boost::function<void(std::ostream&)> Streamer;

 void out(const Streamer& func)
 {
     func(std::cout);
 }

 int main(int argc, char *argv[])
 {
     out(boost::phoenix::placeholders::arg1 << "hi there\n");
     return 0;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10864#comment:1>
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:17 UTC