diff --git a/Jamfile b/Jamfile index a5cd5720..de6e5312 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 f3876bda..3ac793ba 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