Skip to content

Commit 74d5373

Browse files
committed
[OpenMP] Fix missing type getter for SFINAE helper
Summary: This didn't get the type, which made using this always return false.
1 parent 58508ee commit 74d5373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/DeviceRTL/include/DeviceUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ inline constexpr bool is_same_v = is_same<T, U>::value;
4444

4545
template <typename T> struct is_floating_point {
4646
inline static constexpr bool value =
47-
is_same_v<remove_cv<T>, float> || is_same_v<remove_cv<T>, double>;
47+
is_same_v<remove_cv_t<T>, float> || is_same_v<remove_cv_t<T>, double>;
4848
};
4949
template <typename T>
5050
inline constexpr bool is_floating_point_v = is_floating_point<T>::value;

0 commit comments

Comments
 (0)