Skip to content

Commit 8c3ec96

Browse files
committed
Remove typedef and const
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent 7cbce00 commit 8c3ec96

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/include/CL/sycl/atomic.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ class atomic {
185185
detail::GetSpirvMemoryScope<addressSpace>::scope;
186186

187187
public:
188-
using AtomicPtrType = typename detail::PtrValueType<T, addressSpace>::type;
189188
template <typename pointerT>
190189
#ifdef __SYCL_DEVICE_ONLY__
191190
atomic(multi_ptr<pointerT, addressSpace> ptr)
@@ -212,7 +211,7 @@ class atomic {
212211
typename = typename std::enable_if<
213212
_Space == addressSpace &&
214213
addressSpace == access::address_space::global_space>::type>
215-
atomic(const atomic<T, access::address_space::global_device_space> &&RHS) {
214+
atomic(atomic<T, access::address_space::global_device_space> &&RHS) {
216215
Ptr = RHS.Ptr;
217216
}
218217

@@ -318,7 +317,7 @@ class atomic {
318317

319318
private:
320319
#ifdef __SYCL_DEVICE_ONLY__
321-
AtomicPtrType *Ptr;
320+
typename detail::PtrValueType<T, addressSpace>::type *Ptr;
322321
#else
323322
std::atomic<T> *Ptr;
324323
#endif

0 commit comments

Comments
 (0)