Skip to content

Commit 0ae767f

Browse files
v-klochkovbader
authored andcommitted
[SYCL] Fix the definition of const_reference in accessor
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent adb9912 commit 0ae767f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/accessor2.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class accessor :
333333
public:
334334
using value_type = DataT;
335335
using reference = DataT &;
336-
using const_reference = const reference;
336+
using const_reference = const DataT &;
337337

338338
template <int Dims = Dimensions>
339339
accessor(enable_if_t<((!IsPlaceH && IsHostBuf) ||

0 commit comments

Comments
 (0)