Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SadiinsoSnowfall committed Jan 24, 2025
1 parent f20ab2f commit 65ffa75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/eve/module/core/regular/impl/is_less.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ namespace eve::detail
{
if constexpr (O::contains(definitely))
{
static_assert(floating_value<T>, "[eve::is_less] The definitely option is only supported for floating types.");

auto tol = o[definitely].value(T{});

if constexpr (integral_value<decltype(tol)>) return a < eve::prev(b, tol);
Expand Down
4 changes: 4 additions & 0 deletions include/eve/module/core/regular/is_less.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ namespace eve
constexpr EVE_FORCEINLINE common_logical_t<T, U> operator()(T a, U b) const
requires (compatible_arithmetic_values<T, U>)
{
if constexpr (Options::contains(definitely))
{
static_assert(floating_value<T>, "[eve::is_less] The definitely option is only supported for floating types.");
}
// static_assert( valid_tolerance<common_value_t<T, U>, Options>::value, "[eve::is_less] simd tolerance requires at least one simd parameter." );
return EVE_DISPATCH_CALL(a, b);
}
Expand Down

0 comments on commit 65ffa75

Please sign in to comment.