From 554ce65a69c2cb94396e9be8bc38cfcf0bf887d0 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Fri, 29 Sep 2023 10:52:34 -0700 Subject: [PATCH] Remove unnecessary forced inlining of bool conversion --- include/boost/unordered/unordered_map.hpp | 2 +- include/boost/unordered/unordered_set.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/unordered_map.hpp b/include/boost/unordered/unordered_map.hpp index d78ad5fd..fa12a749 100644 --- a/include/boost/unordered/unordered_map.hpp +++ b/include/boost/unordered/unordered_map.hpp @@ -2252,7 +2252,7 @@ namespace boost { allocator_type get_allocator() const { return *alloc_; } - BOOST_FORCEINLINE explicit operator bool() const noexcept + explicit operator bool() const noexcept { return !this->operator!(); } diff --git a/include/boost/unordered/unordered_set.hpp b/include/boost/unordered/unordered_set.hpp index a2d8304d..eb375c57 100644 --- a/include/boost/unordered/unordered_set.hpp +++ b/include/boost/unordered/unordered_set.hpp @@ -1875,7 +1875,7 @@ namespace boost { allocator_type get_allocator() const { return *alloc_; } - BOOST_FORCEINLINE explicit operator bool() const noexcept + explicit operator bool() const noexcept { return !this->operator!(); }