Consider a function object F
taking a constexpr size_t
argument I
struct F
{
template
constex
I'll take the obvious position here and ask if "I want to emphasize that it is constexpr
by using it as a template argument" is worth this cost and if:
struct F
{
constexpr size_t operator()(size_t i) const { return i; }
template
constexpr size_t operator()(size ) const { return (*this)(I); }
};
would not be a much simpler solution.