diff --git a/include/chaiscript/dispatchkit/boxed_number.hpp b/include/chaiscript/dispatchkit/boxed_number.hpp index deba0bc7..357f4cb0 100644 --- a/include/chaiscript/dispatchkit/boxed_number.hpp +++ b/include/chaiscript/dispatchkit/boxed_number.hpp @@ -288,10 +288,8 @@ namespace chaiscript return callable(*static_cast(bv.get_const_ptr())); case Common_Types::t_long_double: return callable(*static_cast(bv.get_const_ptr())); - default: - throw chaiscript::detail::exception::bad_any_cast(); - } + throw chaiscript::detail::exception::bad_any_cast(); } inline static Boxed_Value oper(Operators::Opers t_oper, const Boxed_Value &t_lhs)