Skip to content

Commit

Permalink
fix: add typename keyword to returnType declarations for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaws1982 committed Jun 21, 2023
1 parent 7094680 commit 7f082ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/zRPCSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,23 @@ using isVoidReturn = std::is_void<typename callable_traits<F>::return_type>;
* @tparam F Functor type to check the return type
*/
template <typename F>
using returnType = callable_traits<F>::return_type;
using returnType = typename callable_traits<F>::return_type;

/**
* @brief Helper routine to get the number of arguments to F
*
* @tparam F Functor type to check number of arguments
*/
template <typename F>
using numArgs = callable_traits<F>::num_args;
using numArgs = typename callable_traits<F>::num_args;

/**
* @brief Helper routine to get the types of arguments to F
*
* @tparam F Functor type to check types of arguments
*/
template <typename F>
using typeArgs = callable_traits<F>::type_args;
using typeArgs = typename callable_traits<F>::type_args;

/**
* @brief Call the function using C++17 fold expression for the arguments
Expand Down Expand Up @@ -160,4 +160,4 @@ decltype(auto) call(F func, std::tuple<Args...> &args)
}

} // namespace support
} // namespace zRPC
} // namespace zRPC

0 comments on commit 7f082ee

Please sign in to comment.