The easiest workaround is to get rid of the offending constexpr variable altogether, which fortunately is trivial – since _findex already returns a std::integral_constant, which encodes the value you want in the type, you can replace the definition of operator() with: