diff --git a/include/chaiscript/dispatchkit/boxed_number.hpp b/include/chaiscript/dispatchkit/boxed_number.hpp index 4a2f94e6..6ad614fc 100644 --- a/include/chaiscript/dispatchkit/boxed_number.hpp +++ b/include/chaiscript/dispatchkit/boxed_number.hpp @@ -300,7 +300,7 @@ namespace chaiscript } template - Target getAsAux() + Target get_as_aux() { return static_cast(*static_cast(bv.get_const_ptr())); } @@ -332,42 +332,42 @@ namespace chaiscript validate_boxed_number(bv); } - template Target getAs() + template Target get_as() { const Type_Info &inp_ = bv.get_type_info(); if (inp_ == typeid(int)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(double)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(float)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(long double)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(char)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(unsigned int)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(long)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(unsigned long)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::int8_t)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::int16_t)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::int32_t)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::int64_t)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::uint8_t)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::uint16_t)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::uint32_t)) { - return getAsAux(); + return get_as_aux(); } else if (inp_ == typeid(boost::uint64_t)) { - return getAsAux(); + return get_as_aux(); } else { throw boost::bad_any_cast(); }