Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Remove invalid qualification of initializer_list #344

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/cuda/std/detail/libcxx/include/__iterator/empty.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ constexpr bool empty(const _Tp (&)[_Sz]) noexcept { return false; }

template <class _Ep>
_LIBCUDACXX_NODISCARD_AFTER_CXX17 _LIBCUDACXX_INLINE_VISIBILITY
constexpr bool empty(_CUDA_VSTD::initializer_list<_Ep> __il) noexcept { return __il.size() == 0; }
constexpr bool empty(initializer_list<_Ep> __il) noexcept { return __il.size() == 0; }

#endif // _LIBCUDACXX_STD_VER > 17

Expand Down