From 04a4ea890ad42eaf759d3e925f84258cbdae5c0d Mon Sep 17 00:00:00 2001 From: Owen Green Date: Fri, 16 Aug 2019 10:13:17 +0100 Subject: [PATCH] SC Wrapper: handling for shared client types from incoming string --- include/FluidSCWrapper.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 0615174..e469cee 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -443,6 +443,14 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase typename LongT::type bufnum = static_cast(fromArgs(w, args, LongT::type(), -1)); return InputBufferT::type(bufnum >= 0 ? new SCBufferAdaptor(bufnum, w) : nullptr); } + + template + static std::enable_if_t::value,P> + fromArgs(World *w, ArgType args, P&, int) + { + return {fromArgs(w, args, std::string{}, 0).c_str()}; + } + };