SC Wrapper: handling for shared client types from incoming string

nix
Owen Green 6 years ago
parent 74e6a25688
commit 04a4ea890a

@ -443,6 +443,14 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase<C>
typename LongT::type bufnum = static_cast<LongT::type>(fromArgs(w, args, LongT::type(), -1));
return InputBufferT::type(bufnum >= 0 ? new SCBufferAdaptor(bufnum, w) : nullptr);
}
template<typename P>
static std::enable_if_t<IsSharedClient<P>::value,P>
fromArgs(World *w, ArgType args, P&, int)
{
return {fromArgs(w, args, std::string{}, 0).c_str()};
}
};

Loading…
Cancel
Save