From 3824e0c49c7c43ac99d4f871d8404559070d7049 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 26 Apr 2020 18:13:19 +0200 Subject: Add correct std namespace to nullptr_t Reported-By: clangd Gbp-Dch: Ignore --- apt-pkg/pkgcache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apt-pkg') diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index d2e2f432e..6c6a4664e 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -99,7 +99,7 @@ template class map_pointer { uint32_t val; public: map_pointer() noexcept : val(0) {} - map_pointer(nullptr_t) noexcept : val(0) {} + map_pointer(std::nullptr_t) noexcept : val(0) {} explicit map_pointer(uint32_t n) noexcept : val(n) {} explicit operator uint32_t() noexcept { return val; } explicit operator bool() noexcept { return val != 0; } @@ -111,8 +111,8 @@ template inline bool operator !=(map_pointer u, map_pointer m) template inline bool operator <(map_pointer u, map_pointer m) { return uint32_t(u) < uint32_t(m); } template inline bool operator >(map_pointer u, map_pointer m) { return uint32_t(u) > uint32_t(m); } template inline uint32_t operator -(map_pointer u, map_pointer m) { return uint32_t(u) - uint32_t(m); } -template bool operator ==(map_pointer m, nullptr_t) { return uint32_t(m) == 0; } -template bool operator !=(map_pointer m, nullptr_t) { return uint32_t(m) != 0; } +template bool operator ==(map_pointer m, std::nullptr_t) { return uint32_t(m) == 0; } +template bool operator !=(map_pointer m, std::nullptr_t) { return uint32_t(m) != 0; } // same as the previous, but documented to be to a string item typedef map_pointer map_stringitem_t; -- cgit v1.2.3