From b1e4eb90477382ed2bed0121d40804feb5fd3e8b Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Sun, 4 Nov 2018 21:47:18 +0100 Subject: [PATCH] attempt to fix --- include/boost/histogram/detail/axes.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)>(