[fusion][mpl] transform_view and as_vector compilation error

Hi,
we have a problem in our code base. I extracted a minimal example, see
below. The code works with g++ version up to 4.8.1 and C++11 but fails
to compile with gcc-4.8.1 and clang3.2 and newer. Any ideas what goes
wrong here? Should I further dig into the problem?
I am using boost 1.54.
#include

On 15/12/2013 12:17 p.m., Karsten Ahnert wrote:
Newer compiler versions that support N3276 decltype do not use the result_of protocol anymore, instead boost::result_of uses decltype directly. For that to work you need an operator(), which was always a requirement for transform_view and other functions expecting a function object.
template <typename T> typename T::result_type1 operator()(T) const;
};
Regards, -- Agustín K-ballo Bergé.- http://talesofcpp.fusionfenix.com
participants (2)
-
Agustín K-ballo Bergé
-
Karsten Ahnert