Using <,<=,>,>= to compare unrelated pointers gives an unspecified result according to 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.
Using
<
,<=
,>
,>=
to compare unrelated pointers gives an unspecified result according to standard. This PR replaces the usage of these operators ingsl::not_null
with the STL counterparts, which would leverage any implementation-defined strict total ordering for pointers.Resolves #880