#include #include #include #include "test.h" static constexpr auto add_one = FIT_STATIC_LAMBDA(int x) { return x + 1; }; template struct wrapper : F { FIT_INHERIT_CONSTRUCTOR(wrapper, F) }; template constexpr wrapper wrap(T x) { return x; } FIT_TEST_CASE() { FIT_TEST_CHECK(3 == add_one(2)); } FIT_TEST_CASE() { constexpr auto add_one_again = add_one; FIT_TEST_CHECK(3 == add_one_again(2)); } FIT_TEST_CASE() { constexpr auto add_one_again = wrap(add_one); FIT_TEST_CHECK(3 == add_one_again(2)); }