This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: When is it legal to compare any pair of pointers?
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: chris jefferson <caj at cs dot york dot ac dot uk>, gcc at gcc dot gnu dot org,Nathan Myers <ncm-nospam at cantrip dot org>
- Date: Tue, 13 Sep 2005 12:57:37 +0200
- Subject: Re: When is it legal to compare any pair of pointers?
- References: <4326A85A.8080001@cs.york.ac.uk> <4326ADB9.6070109@suse.de>
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.