diff --git a/include/chaiscript/dispatchkit/boxed_cast_helper.hpp b/include/chaiscript/dispatchkit/boxed_cast_helper.hpp index 0e8870d..d8df9be 100644 --- a/include/chaiscript/dispatchkit/boxed_cast_helper.hpp +++ b/include/chaiscript/dispatchkit/boxed_cast_helper.hpp @@ -166,11 +166,11 @@ namespace chaiscript template<> struct Cast_Helper_Inner { - typedef std::reference_wrapper Result_Type; + typedef Boxed_Value Result_Type; static Result_Type cast(const Boxed_Value &ob, const Type_Conversions *) { - return std::cref(ob); + return ob; } };