Skip to content

Commit

Permalink
Workaround for gcc7 link error
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Jan 23, 2025
1 parent 2e60d0f commit 7a90b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/leaf/pred.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct condition<Enum, Enum>

#if __cplusplus >= 201703L
template <class ErrorCodeEnum>
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<ErrorCodeEnum>::value, "leaf::category requires an error code enum");
return &ec.category() == &std::error_code(ErrorCodeEnum{}).category();
Expand Down

0 comments on commit 7a90b85

Please sign in to comment.