diff --git a/include/boost/histogram/axis/traits.hpp b/include/boost/histogram/axis/traits.hpp index 7fe6dd17..f8fda8ba 100644 --- a/include/boost/histogram/axis/traits.hpp +++ b/include/boost/histogram/axis/traits.hpp @@ -28,6 +28,8 @@ using static_options_impl = axis::option::bitset; template double value_method_switch_impl1(std::false_type, I&&, D&&, const A&) { + // comma trick to make all compilers happy; some would complain about + // unreachable code after the throw, others about a missing return return BOOST_THROW_EXCEPTION( std::runtime_error(cat(type_name(), " has no value method"))), double{};