mirror of https://github.com/CGAL/cgal
try working around a warning
This commit is contained in:
parent
33cfc700b2
commit
4d797b55c4
|
|
@ -122,7 +122,7 @@ class Handle
|
||||||
int
|
int
|
||||||
refs() const noexcept { return PTR->count.load(std::memory_order_relaxed); }
|
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; }
|
bool identical(const Handle& h) const noexcept { return PTR == h.PTR; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue