diff --git a/include/router.h b/include/router.h index 592700a..111dc9e 100644 --- a/include/router.h +++ b/include/router.h @@ -99,7 +99,7 @@ namespace rest_rpc { template static typename std::result_of, Args...)>::type call_member_helper( const F & f, Self * self, const std::index_sequence&, - std::tuple tup, std::weak_ptr ptr = 0) { + std::tuple tup, std::weak_ptr ptr = nullptr) { return (*self.*f)(ptr, std::move(std::get(tup))...); }