You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using < to compare unrelated pointers give unspecified result according to standard. std::less should be consistent (even if I don't know any implementation of std::less which is different than lhs < rhs).
The text was updated successfully, but these errors were encountered:
…sons with `not_null` (#1106)
Using `<`,`<=`,`>`,`>=` to compare unrelated pointers gives an unspecified result according to the standard.
This PR replaces the usage of these operators in `gsl::not_null` with the STL counterparts, which would leverage any implementation-defined strict total ordering for pointers.
Resolves#880
using < to compare unrelated pointers give unspecified result according to standard.
std::less
should be consistent (even if I don't know any implementation ofstd::less
which is different thanlhs < rhs
).The text was updated successfully, but these errors were encountered: