diff --git a/include/fc/rpc/api_connection.hpp b/include/fc/rpc/api_connection.hpp index 9045207..f606d32 100644 --- a/include/fc/rpc/api_connection.hpp +++ b/include/fc/rpc/api_connection.hpp @@ -146,21 +146,27 @@ namespace fc { return f(); } - template::value,Signature>::type* = nullptr> - R call_generic( const std::function,Args...)>& f, variants::const_iterator a0, variants::const_iterator e, uint32_t max_depth ) + template::value,Signature>::type* = nullptr> + R call_generic( const std::function,Args...)>& f, + variants::const_iterator a0, variants::const_iterator e, uint32_t max_depth ) { FC_ASSERT( a0 != e, "too few arguments passed to method" ); FC_ASSERT( max_depth > 0, "Recursion depth exceeded!" ); detail::callback_functor arg0( get_connection(), a0->as(1) ); - return call_generic( this->bind_first_arg,Args...>( f, std::function(arg0) ), a0+1, e, max_depth - 1 ); + return call_generic( this->bind_first_arg,Args...>( f, + std::function(arg0) ), a0+1, e, max_depth - 1 ); } - template::value,Signature>::type* = nullptr> - R call_generic( const std::function&,Args...)>& f, variants::const_iterator a0, variants::const_iterator e, uint32_t max_depth ) + template::value,Signature>::type* = nullptr> + R call_generic( const std::function&,Args...)>& f, + variants::const_iterator a0, variants::const_iterator e, uint32_t max_depth ) { FC_ASSERT( a0 != e, "too few arguments passed to method" ); FC_ASSERT( max_depth > 0, "Recursion depth exceeded!" ); detail::callback_functor arg0( get_connection(), a0->as(1) ); - return call_generic( this->bind_first_arg&,Args...>( f, arg0 ), a0+1, e, max_depth - 1 ); + return call_generic( this->bind_first_arg&,Args...>( f, + arg0 ), a0+1, e, max_depth - 1 ); } template