mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-30 00:50:48 +08:00
fix for clang7
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ namespace rest_rpc {
|
||||
template<typename F, typename Self, size_t... Indexes, typename Arg, typename... Args>
|
||||
static typename std::result_of<F(Self, std::weak_ptr<connection>, Args...)>::type call_member_helper(
|
||||
const F & f, Self * self, const std::index_sequence<Indexes...>&,
|
||||
std::tuple<Arg, Args...> tup, std::weak_ptr<connection> ptr = 0) {
|
||||
std::tuple<Arg, Args...> tup, std::weak_ptr<connection> ptr = nullptr) {
|
||||
return (*self.*f)(ptr, std::move(std::get<Indexes + 1>(tup))...);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user