diff --git a/src/Val.cc b/src/Val.cc index 3ea10d706c..075e5805bd 100644 --- a/src/Val.cc +++ b/src/Val.cc @@ -666,7 +666,7 @@ void IntervalVal::ValDescribe(ODesc* d) const { using unit_word = std::pair; - static const std::array units = { + constexpr std::array units = { unit_word{ Days, "day" }, unit_word{ Hours, "hr" }, unit_word{ Minutes, "min" },