Commit 8f4ca7e1 authored by Quentin Khan's avatar Quentin Khan
Browse files

Fix: change FConstFuncs.hpp:Feq return type to bool

parent 4dec09ef
......@@ -12,7 +12,7 @@ constexpr T Fpow(T a, std::size_t p) {
template<typename T, typename U,
typename std::enable_if<std::is_arithmetic<T>::value, T>::type* = nullptr,
typename std::enable_if<std::is_arithmetic<U>::value, U>::type* = nullptr>
constexpr T Ffeq(T a, U b, T epsilon = 1e-7) {
constexpr bool Ffeq(T a, U b, T epsilon = 1e-7) {
return a - b < epsilon && b - a < epsilon;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment