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


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

Re: shadowed rel_ops operators


On Mon, Jan 22, 2001 at 05:08:47PM +1100, Richard Andrews wrote:
> 
> > 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.

No, I *meant* we could put the hypothetical __builtin_warning somewhere in
the rel_ops code.  The header could be freely included, but the #warning-like
text wouldn't occur until the user used it.  However...


> When I first encountered this problem, I was taken straight to
> bits/stl_iterator.h by the error message.

Ah, that's cool.  So no such #warning would be needed.  Our diagnostics
mechanisms have been much improved lately.  (Thanks Gaby!)


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

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