This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: When is it legal to compare any pair of pointers?


Paolo Carlini wrote:

>Then, as far as *our* library (and compiler) are concerned, there is the
>interesting example of basic_string::_M_disjunct: with Nathan's
>substantive insight we came to the conclusion that such kind of
>comparisons can be always meaningful to do (at the C++ library level) if
>we use std::less<>() & co.
>
By the way, 20.3.3/8 is very precise about this.

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]