Subject: [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 18:24:56
#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
Keywords: |
------------------------------+---------------------------
Boost 1.57 and clang 6 (from Xcode 6) reject this program:
{{{
#include <iostream>
#include <boost/lambda/lambda.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::lambda::_1 << "hi there\n");
return 0;
}
}}}
Errors start with:
{{{
boost/lambda/detail/lambda_traits.hpp:256:58: error: cannot form a
reference to 'void'
typename detail::IF<boost::is_function<T>::value, T&, const T>::RET
^
}}}
This works with Boost 1.55 with clang 6.
This works with Boost 1.57 with older compilers.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10864> 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