From 7a90b85ba80f0b913bb19481195cf782713edd52 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 22 Jan 2025 18:17:06 -0800 Subject: [PATCH] Workaround for gcc7 link error --- include/boost/leaf/pred.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/leaf/pred.hpp b/include/boost/leaf/pred.hpp index 136368a7..480b0f50 100644 --- a/include/boost/leaf/pred.hpp +++ b/include/boost/leaf/pred.hpp @@ -65,7 +65,7 @@ struct condition #if __cplusplus >= 201703L template -BOOST_LEAF_CONSTEXPR inline bool category( std::error_code const & ec ) +BOOST_LEAF_CONSTEXPR bool category( std::error_code const & ec ) { static_assert(std::is_error_code_enum::value, "leaf::category requires an error code enum"); return &ec.category() == &std::error_code(ErrorCodeEnum{}).category();