Skip to content

Commit

Permalink
[OpenMP] Fix missing type getter for SFINAE helper
Browse files Browse the repository at this point in the history
Summary:
This didn't get the type, which made using this always return false.
  • Loading branch information
jhuber6 committed Jan 11, 2025
1 parent 58508ee commit 74d5373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offload/DeviceRTL/include/DeviceUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 74d5373

Please sign in to comment.