File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
sycl/include/sycl/ext/oneapi/properties Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,11 @@ inline namespace _V1 {
1717namespace ext ::oneapi::experimental {
1818namespace detail {
1919
20- // Checks if a type T has a static value member variable.
21- template <typename T, typename U = int > struct HasValue : std::false_type {};
22- template <typename T>
23- struct HasValue <T, decltype ((void )T::value, 0 )> : std::true_type {};
24-
2520// Base class for property values with a single non-type value
2621template <typename T, typename = void > struct SingleNontypePropertyValueBase {};
2722
2823template <typename T>
29- struct SingleNontypePropertyValueBase <T, std::enable_if_t <HasValue<T> ::value>> {
24+ struct SingleNontypePropertyValueBase <T, std::void_t < decltype (T ::value) >> {
3025 static constexpr auto value = T::value;
3126};
3227
You can’t perform that action at this time.
0 commit comments