Skip to content

Commit da50eb6

Browse files
committed
Yet another attempt to fix build on Windows
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 13e0333 commit da50eb6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sycl/include/CL/sycl/ONEAPI/accessor_property_list.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,18 @@ class accessor_property_list : protected sycl::detail::PropertyListBase {
193193

194194
#if __cplusplus >= 201703L
195195
template <typename T>
196-
constexpr
197-
typename detail::enable_if_t<is_compile_time_property<T>::value, bool>
198-
has_property() {
196+
constexpr std::enable_if_t<is_compile_time_property<T>::value, bool>
197+
has_property() const {
199198
return ContainsPropertyInstance<PropertyContainer<PropsT...>,
200199
T::template instance>::value;
201200
}
202201

203202
template <typename T,
204-
typename = typename detail::enable_if_t<
203+
typename = std::enable_if_t<
205204
is_compile_time_property<T>::value &&
206205
ContainsPropertyInstance<PropertyContainer<PropsT...>,
207206
T::template instance>::value>>
208-
constexpr auto get_property() {
207+
constexpr auto get_property() const {
209208
return typename GetCompileTimePropertyHelper<PropertyContainer<PropsT...>,
210209
T::template instance>::type{};
211210
}

0 commit comments

Comments
 (0)