shadowed rel_ops operators

Gabriel Dos Reis gdr@codesourcery.com
Sun Apr 1 00:00:00 GMT 2001


Richard Andrews <richarda@ixla.com.au> writes:

| > The only people reading comments in the headers are *us*.  If we're going to
| > warn about this, we should do so more "proactively."  We can't use #warning;
| > stl_relops.h gets included by too many things... hm.
| > 
| > *sigh*  We need a __builtin_warning that acts like #warning but only takes
| > effect when the user actually uses it.  :-)
| 
| Actually, the header might be an appropriate location for the warning.
| 
| When I first encountered this problem, I was taken straight to bits/stl_iterator.h by the error message.

In the future, it might as well be the case that you won't be directly
taken to header if you don't explicitly ask to.  I don't think that
header is the appropriate place to put such comment.  It bettter
serves its purpose as a FAQ.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


More information about the Libstdc++ mailing list