Skip to content

Commit c1cd13e

Browse files
committed
[SYCL] Return "generic" pointers from constant_ptr methods
Signed-off-by: Mariya Podchishchaeva <[email protected]>
1 parent aeeea11 commit c1cd13e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sycl/include/CL/sycl/multi_ptr.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,9 @@ template <typename ElementType, access::address_space Space> class multi_ptr {
7070
return *this;
7171
}
7272

73-
#ifdef __SYCL_ENABLE_INFER_AS__
74-
using ReturnPtr =
75-
typename std::conditional<Space == access::address_space::constant_space,
76-
pointer_t, ElementType *>::type;
77-
using ReturnRef =
78-
typename std::conditional<Space == access::address_space::constant_space,
79-
reference_t, ElementType &>::type;
80-
using ReturnConstRef =
81-
typename std::conditional<Space == access::address_space::constant_space,
82-
const_reference_t, const ElementType &>::type;
83-
#else
8473
using ReturnPtr = ElementType *;
8574
using ReturnRef = ElementType &;
8675
using ReturnConstRef = const ElementType &;
87-
#endif
8876

8977
ReturnRef operator*() const {
9078
return *reinterpret_cast<ReturnPtr>(m_Pointer);

0 commit comments

Comments
 (0)