2
0
mirror of https://github.com/boostorg/hof.git synced 2026-01-21 04:52:20 +00:00
Files
hof/test/fail/unpack.cpp
2018-02-14 14:54:32 -06:00

21 lines
301 B
C++

#include <boost/hof/unpack.hpp>
struct foo
{};
namespace boost { namespace hof {
template<>
struct unpack_sequence<foo>
{
template<class F, class S>
constexpr static int apply(F&&, S&&)
{
return 0;
}
};
}
int main() {
boost::hof::unpack(boost::hof::always(1))(foo{});
}