Merge branch 'master' into ChaiScript_5_0_CPP_11
This commit is contained in:
commit
d84b4c0b37
@ -303,13 +303,13 @@ namespace chaiscript
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename Target, typename Source>
|
template<typename Target, typename Source>
|
||||||
Target get_as_aux()
|
Target get_as_aux() const
|
||||||
{
|
{
|
||||||
return static_cast<Target>(*static_cast<const Source *>(bv.get_const_ptr()));
|
return static_cast<Target>(*static_cast<const Source *>(bv.get_const_ptr()));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Source>
|
template<typename Source>
|
||||||
std::string to_string_aux(const Boxed_Value &v)
|
std::string to_string_aux(const Boxed_Value &v) const
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << *static_cast<const Source *>(v.get_const_ptr());
|
oss << *static_cast<const Source *>(v.get_const_ptr());
|
||||||
@ -335,7 +335,7 @@ namespace chaiscript
|
|||||||
validate_boxed_number(bv);
|
validate_boxed_number(bv);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Target> Target get_as()
|
template<typename Target> Target get_as() const
|
||||||
{
|
{
|
||||||
const Type_Info &inp_ = bv.get_type_info();
|
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();
|
const Type_Info &inp_ = bv.get_type_info();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user