Commit acd0c541 authored by Matthieu Dorier's avatar Matthieu Dorier

prevent warnings about unused arguments

parent b4c00777
......@@ -91,6 +91,8 @@ private:
const std::integral_constant<bool, false>& r_is_void,
const std::integral_constant<bool, true>& first_arg_is_request,
const pool& p) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
(self->*func)(req, args...);
......@@ -108,6 +110,8 @@ private:
const std::integral_constant<bool, false>& r_is_void,
const std::integral_constant<bool, false>& first_arg_is_request,
const pool& p) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
R r = (self->*func)(args...);
......@@ -126,6 +130,8 @@ private:
const std::integral_constant<bool, true>& r_is_void,
const std::integral_constant<bool, true>& first_arg_is_request,
const pool& p = pool()) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
(self->*func)(req, args...);
......@@ -142,6 +148,8 @@ private:
const std::integral_constant<bool, true>& r_is_void,
const std::integral_constant<bool, false>& first_arg_is_request,
const pool& p = pool()) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
(self->*func)(args...);
......@@ -163,6 +171,8 @@ private:
const std::integral_constant<bool, false>& r_is_void,
const std::integral_constant<bool, true>& first_arg_is_request,
const pool& p) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
(self->*func)(req, args...);
......@@ -180,6 +190,8 @@ private:
const std::integral_constant<bool, false>& r_is_void,
const std::integral_constant<bool, false>& first_arg_is_request,
const pool& p) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
R r = (self->*func)(args...);
......@@ -198,6 +210,8 @@ private:
const std::integral_constant<bool, true>& r_is_void,
const std::integral_constant<bool, true>& first_arg_is_request,
const pool& p = pool()) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
(self->*func)(req, args...);
......@@ -214,6 +228,8 @@ private:
const std::integral_constant<bool, true>& r_is_void,
const std::integral_constant<bool, false>& first_arg_is_request,
const pool& p = pool()) {
(void)r_is_void;
(void)first_arg_is_request;
T* self = static_cast<T*>(this);
std::function<void(const request&, Args...)> fun = [self, func](const request& req, Args... args) {
(self->*func)(args...);
......
......@@ -32,7 +32,10 @@ template<>
struct tuple_serializer<0> {
template<class A, class... Types>
static inline void apply(A& ar, std::tuple<Types...>& t) {}
static inline void apply(A& ar, std::tuple<Types...>& t) {
(void)ar;
(void)t;
}
};
}
......
......@@ -26,6 +26,7 @@ struct apply_f_to_t_impl<0> {
template<typename R, typename... ArgsF, typename... ArgsT, typename... Args>
static R apply(const std::function<R(ArgsF...)>& f, std::tuple<ArgsT...>& t, Args&&... args) {
(void)t;
return f(std::forward<Args>(args)...);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment