diff --git a/include/chaiscript/dispatchkit/handle_return.hpp b/include/chaiscript/dispatchkit/handle_return.hpp index f1c908b0..b0e8a9ff 100644 --- a/include/chaiscript/dispatchkit/handle_return.hpp +++ b/include/chaiscript/dispatchkit/handle_return.hpp @@ -46,6 +46,16 @@ namespace chaiscript return Boxed_Value(r); } }; + + template + struct Handle_Return + { + static Boxed_Value handle(const Ret &r) + { + return Boxed_Value(boost::cref(r)); + } + }; + /** * Used internally for handling a return value from a Proxy_Function call @@ -57,6 +67,11 @@ namespace chaiscript { return Boxed_Value(boost::ref(r)); } + + static Boxed_Value handle(const Ret &r) + { + return Boxed_Value(boost::cref(r)); + } }; /**