From 12aafcd7694d0c9d1b420f207ffcb94ee922dd49 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Wed, 1 Jan 2020 22:18:47 +0100 Subject: [PATCH] crimson: fix FTBFS on Clang induced by errorator. Reported-by Ronen Friedman Signed-off-by: Radoslaw Zarzynski --- src/crimson/common/errorator.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 137f55d0a16..1501999e74e 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -79,7 +79,7 @@ public: template struct unthrowable_wrapper : error_t> { unthrowable_wrapper(const unthrowable_wrapper&) = delete; - static constexpr unthrowable_wrapper instance{}; + static const unthrowable_wrapper instance; [[nodiscard]] static const auto& make() { return instance; } @@ -123,6 +123,8 @@ private: friend class error_t>; }; +template +const inline unthrowable_wrapper unthrowable_wrapper::instance{}; template std::exception_ptr unthrowable_wrapper::carrier_instance = \ @@ -356,9 +358,9 @@ private: using base_t::base_t; - template + template [[gnu::noinline]] - static auto _safe_then_handle_errors(auto&& future, + static auto _safe_then_handle_errors(Future&& future, ErrorVisitor&& errfunc) { maybe_handle_error_t maybe_handle_error( std::forward(errfunc), -- 2.47.3