Skip to content

Commit 01bcd57

Browse files
[NFC][SYCL] Use is_accessor*_v instead of is_accessor*::value (#19889)
1 parent 19d753b commit 01bcd57

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/include/sycl/properties/accessor_properties.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ struct is_property<ext::intel::property::buffer_location> : std::true_type {};
188188

189189
template <typename T>
190190
struct is_property_of<property::noinit, T>
191-
: std::bool_constant<detail::acc_properties::is_accessor<T>::value ||
192-
detail::acc_properties::is_host_accessor<T>::value> {};
191+
: std::bool_constant<detail::acc_properties::is_accessor_v<T> ||
192+
detail::acc_properties::is_host_accessor_v<T>> {};
193193

194194
template <typename T>
195195
struct is_property_of<property::no_init, T>
@@ -201,15 +201,15 @@ struct is_property_of<property::no_init, T>
201201

202202
template <typename T>
203203
struct is_property_of<ext::oneapi::property::no_offset, T>
204-
: std::bool_constant<detail::acc_properties::is_accessor<T>::value> {};
204+
: std::bool_constant<detail::acc_properties::is_accessor_v<T>> {};
205205

206206
template <typename T>
207207
struct is_property_of<ext::oneapi::property::no_alias, T>
208-
: std::bool_constant<detail::acc_properties::is_accessor<T>::value> {};
208+
: std::bool_constant<detail::acc_properties::is_accessor_v<T>> {};
209209

210210
template <typename T>
211211
struct is_property_of<ext::intel::property::buffer_location, T>
212-
: std::bool_constant<detail::acc_properties::is_accessor<T>::value> {};
212+
: std::bool_constant<detail::acc_properties::is_accessor_v<T>> {};
213213

214214
namespace detail {
215215
template <int I>

0 commit comments

Comments
 (0)