Skip to content

Commit 9259b9b

Browse files
committed
[SYCL] Update static in has_property and get_property methods
1 parent 2118678 commit 9259b9b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

sycl/include/sycl/ext/oneapi/accessor_property_list.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,19 +194,19 @@ class accessor_property_list : protected sycl::detail::PropertyListBase {
194194
}
195195

196196
#if __cplusplus >= 201703L
197-
template <typename T>
198-
static constexpr std::enable_if_t<is_compile_time_property<T>::value, bool>
199-
has_property() {
197+
template <typename T,
198+
typename = std::enable_if_t<is_compile_time_property<T>::value>>
199+
static constexpr bool has_property() {
200200
return ContainsPropertyInstance<PropertyContainer<PropsT...>,
201201
T::template instance>::value;
202202
}
203203

204-
template <typename T,
205-
typename = std::enable_if_t<
206-
is_compile_time_property<T>::value &&
207-
ContainsPropertyInstance<PropertyContainer<PropsT...>,
208-
T::template instance>::value>>
209-
static constexpr auto get_property() {
204+
template <typename T>
205+
static constexpr auto get_property(
206+
typename std::enable_if_t<
207+
is_compile_time_property<T>::value &&
208+
ContainsPropertyInstance<PropertyContainer<PropsT...>,
209+
T::template instance>::value> * = 0) {
210210
return typename GetCompileTimePropertyHelper<PropertyContainer<PropsT...>,
211211
T::template instance>::type{};
212212
}

0 commit comments

Comments
 (0)