From 04e2256c928afe3fec5e60511b3b2c63fbf36091 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sun, 2 Aug 2015 18:21:48 -0600 Subject: [PATCH] Fix error caused by last fix --- include/chaiscript/dispatchkit/boxed_cast_helper.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/chaiscript/dispatchkit/boxed_cast_helper.hpp b/include/chaiscript/dispatchkit/boxed_cast_helper.hpp index 0e8870d3..d8df9be8 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; } };