Given:
typedef std::integer_sequence<int, 0,4,7> allowed_args_t;
and:
template<int arg> void foo()
{
static_assert( /*fire if arg not in allowed_args_t!*/ )
}
How should I write that static_assert to be as cheap as possible in compile-time?
I'm using C++17.