diff --git a/include/boost/histogram/detail/axes.hpp b/include/boost/histogram/detail/axes.hpp index 01452f5d..3ba74fd7 100644 --- a/include/boost/histogram/detail/axes.hpp +++ b/include/boost/histogram/detail/axes.hpp @@ -332,8 +332,8 @@ constexpr int weight_index() { template void fill_impl(S& storage, const T& axes, const std::tuple& args) { - constexpr int Iw = weight_index(); - constexpr unsigned N = Iw >= 0 ? sizeof...(Us) - 1 : sizeof...(Us); + const int Iw = weight_index(); + const unsigned N = Iw >= 0 ? sizeof...(Us) - 1 : sizeof...(Us); optional_index idx = args_to_index<(Iw == 0 ? 1 : 0), N>(axes, args); if (idx) { static_if_c<(Iw == -1)>(