From 9e3c2960aad13b13401049323837ec1405e6ca29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Gro=C3=9F?= Date: Tue, 17 Jul 2012 18:26:58 +0200 Subject: [PATCH] Make some Boxed_Number functions const. --- include/chaiscript/dispatchkit/boxed_number.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/chaiscript/dispatchkit/boxed_number.hpp b/include/chaiscript/dispatchkit/boxed_number.hpp index 69b4601..d9aa0f2 100644 --- a/include/chaiscript/dispatchkit/boxed_number.hpp +++ b/include/chaiscript/dispatchkit/boxed_number.hpp @@ -300,13 +300,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()); @@ -332,7 +332,7 @@ namespace chaiscript validate_boxed_number(bv); } - template Target get_as() + template Target get_as() const { const Type_Info &inp_ = bv.get_type_info(); @@ -373,7 +373,7 @@ namespace chaiscript } } - std::string to_string() + std::string to_string() const { const Type_Info &inp_ = bv.get_type_info();