diff --git a/include/chaiscript/dispatchkit/boxed_number.hpp b/include/chaiscript/dispatchkit/boxed_number.hpp index 8f7401b..8404a54 100644 --- a/include/chaiscript/dispatchkit/boxed_number.hpp +++ b/include/chaiscript/dispatchkit/boxed_number.hpp @@ -303,13 +303,13 @@ namespace chaiscript } template - Target get_as_aux() + Target get_as_aux() const { return static_cast(*static_cast(bv.get_const_ptr())); } template - std::string to_string_aux(const Boxed_Value &v) + std::string to_string_aux(const Boxed_Value &v) const { std::ostringstream oss; oss << *static_cast(v.get_const_ptr()); @@ -335,7 +335,7 @@ namespace chaiscript validate_boxed_number(bv); } - template Target get_as() + template Target get_as() const { const Type_Info &inp_ = bv.get_type_info(); @@ -376,7 +376,7 @@ namespace chaiscript } } - std::string to_string() + std::string to_string() const { const Type_Info &inp_ = bv.get_type_info();