From 41c1c490c8af4eabdf50b5078853d9ea5cb308bc Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 29 Apr 2016 08:31:59 -0600 Subject: [PATCH] Add support for *& return types --- .../chaiscript/dispatchkit/handle_return.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/chaiscript/dispatchkit/handle_return.hpp b/include/chaiscript/dispatchkit/handle_return.hpp index 2650e3b..58bfafb 100644 --- a/include/chaiscript/dispatchkit/handle_return.hpp +++ b/include/chaiscript/dispatchkit/handle_return.hpp @@ -115,6 +115,24 @@ namespace chaiscript } }; + template + struct Handle_Return + { + static Boxed_Value handle(Ret *p) + { + return Boxed_Value(p, true); + } + }; + + template + struct Handle_Return + { + static Boxed_Value handle(const Ret *p) + { + return Boxed_Value(p, true); + } + }; + template struct Handle_Return {