shadowed rel_ops operators

amep@softhome.net amep@softhome.net
Sat Jan 20 15:50:00 GMT 2001


From: Nathan Myers <ncm@nospam.cantrip.org>
Subject: Re: shadowed rel_ops operators
Date: Fri, 19 Jan 2001 23:46:07 -0800
> 
> 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.  
> 

Couple of questions:

1) I noticed that some of the backwards compatibility .h's bring these
operators into std::. This makes it so you can't use libraries that
include these headers along with code that uses the new features of
libstdc++-v3. Is there a way around this? It seems to me that in most
cases all the backwards compatibility. you need is mapping iterator.h
to iterator, ... . Maybe there should be a #define that turns off all
the extra backwards compatibility stuff. Just a thought. And maybe a
bad one.

2) It seems to me that rel_ops is a very good idea that went wrong
somehow. Is there anything that replaces them in anyway? It seems to
me they could be very useful if they where designed so they could be
confined easily.

Thank you very much.

-Arthur
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA6aiRFZPQa4yHFlTARAgdKAJ43iGkccZ83F6I0h6BvnZZNRKoGQACcD63p
Eg0G2jF6oMGHHL9w6XaMo58=
=iDwI
-----END PGP SIGNATURE-----


More information about the Libstdc++ mailing list