mirror of
https://github.com/boostorg/hof.git
synced 2026-01-21 04:52:20 +00:00
21 lines
263 B
C++
21 lines
263 B
C++
#include <fit/unpack.hpp>
|
|
|
|
struct foo
|
|
{};
|
|
|
|
namespace fit {
|
|
|
|
template<>
|
|
struct unpack_sequence<foo>
|
|
{
|
|
template<class F, class S>
|
|
constexpr static int apply(F&&, S&&)
|
|
{
|
|
return 0;
|
|
}
|
|
};
|
|
}
|
|
|
|
int main() {
|
|
fit::unpack(fit::always(1))(foo{});
|
|
} |