From 4a131f5c506786433dae49360e46b34afc476c62 Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Thu, 25 Apr 2024 11:15:16 +0200 Subject: [PATCH] fix --- Jamfile | 2 +- include/boost/histogram/detail/safe_comparison.hpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Jamfile b/Jamfile index a5cd57208..de6e5312a 100644 --- a/Jamfile +++ b/Jamfile @@ -17,7 +17,7 @@ project : requirements /boost//headers $(BOOST_ROOT) - clang:"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion -Wimplicit-float-conversion -fvisibility=hidden -fvisibility-inlines-hidden" + clang:"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion -fvisibility=hidden -fvisibility-inlines-hidden" darwin:"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion -fvisibility=hidden -fvisibility-inlines-hidden" gcc:"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wfloat-conversion -fvisibility=hidden -fvisibility-inlines-hidden" msvc:"/bigobj" diff --git a/include/boost/histogram/detail/safe_comparison.hpp b/include/boost/histogram/detail/safe_comparison.hpp index f3876bda7..3ac793ba4 100644 --- a/include/boost/histogram/detail/safe_comparison.hpp +++ b/include/boost/histogram/detail/safe_comparison.hpp @@ -35,8 +35,7 @@ struct safe_equal { template bool impl(C1, C2, const T& t, const U& u) const noexcept { - using V = std::common_type; - return static_cast(t) == static_cast(u); + return t == u; } template