Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Apr 25, 2024
1 parent f78a984 commit 4a131f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ project
: requirements
<implicit-dependency>/boost//headers
<include>$(BOOST_ROOT)
<toolset>clang:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion -Wimplicit-float-conversion -fvisibility=hidden -fvisibility-inlines-hidden"
<toolset>clang:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion -fvisibility=hidden -fvisibility-inlines-hidden"
<toolset>darwin:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion -fvisibility=hidden -fvisibility-inlines-hidden"
<toolset>gcc:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wfloat-conversion -fvisibility=hidden -fvisibility-inlines-hidden"
<toolset>msvc:<cxxflags>"/bigobj"
Expand Down
3 changes: 1 addition & 2 deletions include/boost/histogram/detail/safe_comparison.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ struct safe_equal {

template <class C1, class C2, class T, class U>
bool impl(C1, C2, const T& t, const U& u) const noexcept {
using V = std::common_type<T, U>;
return static_cast<V>(t) == static_cast<V>(u);
return t == u;
}

template <class T, class U>
Expand Down

0 comments on commit 4a131f5

Please sign in to comment.