From 7ac29f80e3bb90c72a3244831354681e9b7769cf Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Mon, 25 May 2020 14:26:32 +0200 Subject: [PATCH] crimson/common: discard_all::operator() returns void now. Signed-off-by: Radoslaw Zarzynski --- src/crimson/common/errorator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index ea68e351ec2cb..4da774ccb3662 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -724,7 +724,7 @@ public: struct discard_all { template ...> - decltype(auto) operator()(ErrorT&&) { + void operator()(ErrorT&&) { static_assert(contains_once_v>, "discarding disallowed ErrorT"); } @@ -971,7 +971,7 @@ namespace ct_error { struct discard_all { template - decltype(auto) operator()(ErrorT&&) { + void operator()(ErrorT&&) { } }; -- 2.39.5