@@ -71,13 +71,12 @@ class annotated_ref {
71
71
namespace detail {
72
72
template <class T > struct is_ann_ref_impl : std::false_type {};
73
73
template <class T , class P >
74
- struct is_ann_ref_impl <annotated_ref<T, P>>
75
- : std::true_type {};
74
+ struct is_ann_ref_impl <annotated_ref<T, P>> : std::true_type {};
76
75
template <class T , class P >
77
- struct is_ann_ref_impl <const annotated_ref<T, P>>
78
- : std::true_type {};
76
+ struct is_ann_ref_impl <const annotated_ref<T, P>> : std::true_type {};
79
77
template <class T >
80
- constexpr bool is_ann_ref_v = is_ann_ref_impl<std::remove_reference_t <T>>::value;
78
+ constexpr bool is_ann_ref_v =
79
+ is_ann_ref_impl<std::remove_reference_t <T>>::value;
81
80
} // namespace detail
82
81
83
82
template <typename T, typename ... Props>
@@ -111,8 +110,9 @@ class annotated_ref<T, detail::properties_t<Props...>> {
111
110
T operator =(O &&Obj) const {
112
111
#ifdef __SYCL_DEVICE_ONLY__
113
112
return *__builtin_intel_sycl_ptr_annotation (
114
- m_Ptr, detail::PropertyMetaInfo<Props>::name...,
115
- detail::PropertyMetaInfo<Props>::value...) = std::forward<O>(Obj);
113
+ m_Ptr, detail::PropertyMetaInfo<Props>::name...,
114
+ detail::PropertyMetaInfo<Props>::value...) =
115
+ std::forward<O>(Obj);
116
116
#else
117
117
return *m_Ptr = std::forward<O>(Obj);
118
118
#endif
@@ -127,17 +127,17 @@ class annotated_ref<T, detail::properties_t<Props...>> {
127
127
// propagate compound operators
128
128
#define PROPAGATE_OP (op ) \
129
129
template <class O , typename = std::enable_if_t <!detail::is_ann_ref_v<O>>> \
130
- T operator op (O &&rhs) const { \
130
+ T operator op (O &&rhs) const { \
131
131
T t = *this ; \
132
- t op std::forward<O>(rhs); \
132
+ t op std::forward<O>(rhs); \
133
133
*this = t; \
134
134
return t; \
135
135
} \
136
136
template <class O , class P > \
137
- T operator op (const annotated_ref<O, P> &rhs) const { \
137
+ T operator op (const annotated_ref<O, P> &rhs) const { \
138
138
T t = *this ; \
139
139
O t2 = rhs; \
140
- t op t2; \
140
+ t op t2; \
141
141
*this = t; \
142
142
return t; \
143
143
}
0 commit comments