From 0e3e3c6a5581407ed79d9b9665b80bbb920aee54 Mon Sep 17 00:00:00 2001 From: Vyacheslav N Klochkov Date: Thu, 30 May 2019 11:12:15 -0700 Subject: [PATCH] [SYCL] Fix the definition of const_reference in accessor Signed-off-by: Vyacheslav N Klochkov --- sycl/include/CL/sycl/accessor2.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/include/CL/sycl/accessor2.hpp b/sycl/include/CL/sycl/accessor2.hpp index 68f5a0673bed6..99750fe35b5be 100644 --- a/sycl/include/CL/sycl/accessor2.hpp +++ b/sycl/include/CL/sycl/accessor2.hpp @@ -333,7 +333,7 @@ class accessor : public: using value_type = DataT; using reference = DataT &; - using const_reference = const reference; + using const_reference = const DataT &; template accessor(enable_if_t<((!IsPlaceH && IsHostBuf) ||