diff --git a/include/chaiscript/dispatchkit/handle_return.hpp b/include/chaiscript/dispatchkit/handle_return.hpp index aeee80e4..b5609ef4 100644 --- a/include/chaiscript/dispatchkit/handle_return.hpp +++ b/include/chaiscript/dispatchkit/handle_return.hpp @@ -36,14 +36,14 @@ namespace chaiscript struct Handle_Return { template>>> + typename = typename std::enable_if_t>>> static Boxed_Value handle(T r) { return Boxed_Value(std::move(r), true); } template>>> + typename = typename std::enable_if_t>)>> static Boxed_Value handle(T &&r) { return Boxed_Value(std::make_shared(std::forward(r)), true);