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 Sun, Jan 21, 2001 at 12:38:14PM +1100, Richard Andrews wrote:
> From: Nathan Myers
> > Yes.  It is not the iterator operators that break rel_ops, but rather
> > the rel_ops operators that break the iterator operators, as indeed they
> > break all similar operators.
> > 
> > The rel_ops operators are not useful.  They were a mistake.  If you 
> > insist on using them, you will have trouble.  Nobody will care, because 
> > you asked for it.  
> 
> OK. It sounds like the rel_ops operators were a mistake to include in the
> standard. So are there any plans to remove them from the standard?

Unfortunately not.
 
> What will be the standing of libstdc++ if rel_ops breaks libstdc++ or
> vice-verse?  Is this a problem with other implementations of C++?

Since nobody can implement template comparison operators that are
compatible with the rel_ops templates, it's the same everywhere.
 
The right thing to do is to put a prominent comment in the rel_ops
header warning about it.  Probably an FAQ item would be good too.

Nathan Myers
ncm at cantrip dot org

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