#include #include #include #include "test.hpp" FIT_TEST_CASE() { FIT_STATIC_TEST_CHECK(fit::arg_c<3>(1,2,3,4,5) == 3); FIT_TEST_CHECK( fit::arg_c<3>(1,2,3,4,5) == 3 ); } FIT_TEST_CASE() { FIT_STATIC_TEST_CHECK(fit::arg(std::integral_constant())(1,2,3,4,5) == 3); FIT_TEST_CHECK( fit::arg(std::integral_constant())(1,2,3,4,5) == 3 ); } FIT_TEST_CASE() { auto at_3 = fit::arg(std::integral_constant()); static_assert(fit::is_callable::value, "Not SFINAE-friendly"); static_assert(!fit::is_callable::value, "Not SFINAE-friendly"); static_assert(!fit::is_callable::value, "Not SFINAE-friendly"); } struct foo {}; FIT_TEST_CASE() { static_assert(!fit::is_callable::value, "Not sfinae friendly"); static_assert(!fit::is_callable::value, "Not sfinae friendly"); }