[OpenMP] Fix missing type getter for SFINAE helper

Summary:
This didn't get the type, which made using this always return false.
This commit is contained in:
Joseph Huber
2025-01-10 19:35:10 -06:00
parent 58508ee197
commit 74d5373f49

View File

@@ -44,7 +44,7 @@ inline constexpr bool is_same_v = is_same<T, U>::value;
template <typename T> struct is_floating_point {
inline static constexpr bool value =
is_same_v<remove_cv<T>, float> || is_same_v<remove_cv<T>, double>;
is_same_v<remove_cv_t<T>, float> || is_same_v<remove_cv_t<T>, double>;
};
template <typename T>
inline constexpr bool is_floating_point_v = is_floating_point<T>::value;