Skip to content

Commit 0b675e9

Browse files
committed
Fix order of _CCCL_API and CCCL_DEPRECATED
NVRTC has issues if `CCCL_DEPRECATED` appears after `_CCCL_API` Move it to front Fixes nvbug6066409
1 parent f984c90 commit 0b675e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcudacxx/include/cuda/std/__memory/allocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class _CCCL_TYPE_VISIBILITY_DEFAULT allocator : private __non_trivial_if<!is_voi
188188
return ::cuda::std::addressof(__x);
189189
}
190190

191-
[[nodiscard]] _CCCL_API inline CCCL_DEPRECATED _Tp* allocate(size_t __n, const void*)
191+
[[nodiscard]] CCCL_DEPRECATED _CCCL_API inline _Tp* allocate(size_t __n, const void*)
192192
{
193193
return allocate(__n);
194194
}
@@ -283,7 +283,7 @@ allocator<const _Tp> : private __non_trivial_if<!is_void_v<_Tp>, allocator<const
283283
return ::cuda::std::addressof(__x);
284284
}
285285

286-
[[nodiscard]] _CCCL_API inline CCCL_DEPRECATED const _Tp* allocate(size_t __n, const void*)
286+
[[nodiscard]] CCCL_DEPRECATED _CCCL_API inline const _Tp* allocate(size_t __n, const void*)
287287
{
288288
return allocate(__n);
289289
}

0 commit comments

Comments
 (0)