From: Radoslaw Zarzynski Date: Wed, 1 Jan 2020 21:18:47 +0000 (+0100) Subject: crimson: fix FTBFS on Clang induced by errorator. X-Git-Tag: v15.1.0~336^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=12aafcd7694d0c9d1b420f207ffcb94ee922dd49;p=ceph.git crimson: fix FTBFS on Clang induced by errorator. Reported-by Ronen Friedman Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 137f55d0a162..1501999e74ed 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),