Article View: comp.std.c++
Article #1726Re: STL operators != > <= >=
From: mfinney
Date: Tue, 15 Aug 1995 07:38
Date: Tue, 15 Aug 1995 07:38
38 lines
2088 bytes
2088 bytes
Distribution: In <407les$fjs@metro.ucc.su.OZ.AU>, maxtal@Physics.usyd.edu.au (John Max Skaller) writes: >In article <3vqnqf$kst@hardcopy.ny.jpmorgan.com>, >Joe Borkoles <jborkole@jpmorgan.com> wrote: > I simply deleted the templates from the STL files. >No part of the HP STL implementation I have used so far uses >these templates -- but I may have missed something. The draft standard does not require that headers be files or editable in any way. Not to mention that is a constance pain in the maintenance area. > I dislike the defaulting to the total order The problem is that such defaulting is only done for "convenience". To avoid requiring the other operators to be defined by providing a default implmentation -- that unfortunately can conflict with other implementations. It is not even that much of a convenience. > , but C++ >doesn't contain sufficient functionality to declare, on a class >by class basis, that some members (friends) should be defined based on >a model. Macros still remain the simplest way to do this. :-( >Global defaults is a very second rate solution, but arguably >better than macros :-) I don't see where this is a problem solved by templates vs. macros at all. It is not a weakness in the template system, merely an incorrect semantic assumption on the parts of the authors of STL. Michael Lee Finney --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<MATT.95Aug15003848@physics11.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<3vpmv5$4t7@mujibur.inmind.com> <3vqnqf$kst@hardcopy.ny.jpmorgan.com> <407les$fjs@metro.ucc.su.OZ.AU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: mfinney@inmind.com Newsgroups: comp.std.c++ Subject: Re: STL operators != > <= >= Date: 15 Aug 1995 07:38:48 GMT Organization: In Mind, Inc. Approved: matt@physics11.Berkeley.EDU (Matt Austern) Message-ID: <MATT.95Aug15003848@physics11.Berkeley.EDU> References: <3vpmv5$4t7@mujibur.inmind.com> <3vqnqf$kst@hardcopy.ny.jpmorgan.com> <407les$fjs@metro.ucc.su.OZ.AU> Reply-To: mfinney@inmind.com NNTP-Posting-Host: physics11.berkeley.edu