try working around a warning

This commit is contained in:
Sébastien Loriot 2022-11-17 19:03:30 +01:00
parent 33cfc700b2
commit 4d797b55c4
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class Handle
int
refs() const noexcept { return PTR->count.load(std::memory_order_relaxed); }
Id_type id() const noexcept { return PTR - static_cast<Rep*>(0); }
Id_type id() const noexcept { return std::distance(static_cast<Rep*>(0), PTR); }
bool identical(const Handle& h) const noexcept { return PTR == h.PTR; }