We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1592a02 commit 17b3302Copy full SHA for 17b3302
src/wrapper.h
@@ -100,9 +100,8 @@ class RpcFunctionWrapper<std::function<R(Args...)>>: public IFunctionWrapper {
100
}
101
};
102
103
-template<typename F>
104
-auto wrap(F&& f) -> RpcFunctionWrapper<typename arx::function_traits<typename std::decay<F>::type>::function_type>* {
105
- using Signature = typename arx::function_traits<typename std::decay<F>::type>::function_type;
+template<typename F, typename Signature = typename arx::function_traits<typename std::decay<F>::type>::function_type>
+auto wrap(F&& f) -> RpcFunctionWrapper<Signature>* {
106
return new RpcFunctionWrapper<Signature>(std::forward<F>(f));
107
108
0 commit comments