fix -Wcovered-switch-default warnings

This commit is contained in:
Bernd Amend 2021-05-22 14:01:39 +02:00
parent c26fd14953
commit 684522a8b7

View File

@ -288,10 +288,8 @@ namespace chaiscript
return callable(*static_cast<const float *>(bv.get_const_ptr()));
case Common_Types::t_long_double:
return callable(*static_cast<const long double *>(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)