Skip to content

Commit

Permalink
[FIX] libc+++: std::abs is not constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Nov 17, 2023
1 parent e2bbb31 commit 3043257
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ auto fn = [](auto value)
else if constexpr (std::is_same_v<value_t, int>)
return value == 3;
else if constexpr (std::is_same_v<value_t, double>)
return std::abs(value - 1.2) < 0.00001;
return value - 1.2 < 0.00001;
else
return false;
};
Expand Down

0 comments on commit 3043257

Please sign in to comment.