hof icon indicating copy to clipboard operation
hof copied to clipboard

Higher-order functions for c++

Results 61 hof issues
Sort by recently updated
recently updated
newest added

I've discovered `BOOST_HOF_LIFT`/`BOOST_HOF_LIFT_CLASS` [some time ago](https://stackoverflow.com/a/68357266/5825294), and it's very useful when I want to make an object out of the name of a templated and/or overloaded function. Then I've discovered...

https://godbolt.org/z/81bKWTx9M Using BOOST_HOF_LIFT at function scope fails with ``` (14): error C2951: template declarations are only permitted at global, namespace, or class scope (14): error C2892: a template cannot be...

The following minimum sample fails to compile when using MSVC with /std:c++latest (C++20). See: [godbolt example](https://godbolt.org/z/dEcGEs) ``` #include #include #include #include struct A { int i; char c; }; void...

Hi All, We tried to build and run hof test for Boost with VS2017 Update 7 on Windows. It failed to build due to the error C2892. Could you please...

This would be very helpful when using HOF with range-v3 (e.g. with `views::sliding`) or C++20 ranges.

I got the following build error on PPC, gcc-8.1.0, c++14. Looks like only boost::hof::capture_forward(one)(binary_class())(two) and boost::hof::capture_forward(1)(binary_class())(2) report error. boost::hof::capture_forward(one, two)(binary_class())() and boost::hof::capture_forward()(binary_class())(one, two) have no problem. boost::hof::capture and boost::hof::capture_basic have...

The following two bits of code compile ok with MSVC, but using LLVM/Clang produces the following errors. Using the code in print.cpp ``` BOOST_HOF_STATIC_FUNCTION(simple_print) = fix(first_of( BOOST_HOF_LIFT(print_with_cout), BOOST_HOF_LIFT(print_with_range), BOOST_HOF_LIFT(print_with_tuple) ));...

Hi All, We tried to build and run hof test for Boost with permissive- mode on VS2017 Update 7 on Windows. It failed to build due to the error C2440....

This is just something I found during my review. I don't really think it needs a workaround. I'm not even sure that it is intrinsic to my use of the...

It's not clear to me what Fit's dependencies are, if any, but the following error looks like it expects `boost.hpp` to be present in your repo. This is on the...