You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1>./boost_hof_functions.h(45): error : templates cannot be declared inside of a local class
1>C:\boost_1_68_0\boost/hof/lift.hpp(90): note: expanded from macro 'BOOST_HOF_LIFT'
1>C:\boost_1_68_0\boost/hof/lift.hpp(105): note: expanded from macro 'BOOST_HOF_LIFT_CLASS'
>./boost_hof_functions.h(51): error : non-const lvalue reference to type 'reveal_adaptor<...>' cannot bind to a temporary of type 'reveal_adaptor<...>'
1>C:\boost_1_68_0\boost/hof/lambda.hpp(241): note: expanded from macro 'BOOST_HOF_STATIC_LAMBDA_FUNCTION']
There are nearly identical errors with functions from in.cpp.
The text was updated successfully, but these errors were encountered:
So it looks like clang on windows defines _MSC_VER on windows. This should be easy to fix for BOOST_HOF_LIFT.
The other issues I am not sure what the error is. It seems related to #205 as well. Let me look into setting up clang for windows unless you have a dockerfile that sets it up already.
The following two bits of code compile ok with MSVC, but using LLVM/Clang produces the following errors.
Using the code in print.cpp
produces the following error
And
BOOST_HOF_STATIC_LAMBDA_FUNCTION(print) = boost::hof::proj(simple_print);
produces
There are nearly identical errors with functions from in.cpp.
The text was updated successfully, but these errors were encountered: