Article View: comp.std.c++
Article #1771Re: STL operators != > <= >=
From: Nathan Myers
Date: Tue, 15 Aug 1995 02:43
Date: Tue, 15 Aug 1995 02:43
33 lines
1617 bytes
1617 bytes
It's not unreasonable to delete the templates for operators >= etc. from your copy of STL, until you get a compiler that implements namespaces and the new lookup rules properly. (i.e. I would.) I have seen some incorrect statements posted on this thread. #include <iostream.h> is *not* equivalent to: #include <iostream> using namespace std; It is equivalent to: #include <iostream> using std::basic_iostream; using std::cout; ... This is important. "using namespace" is to be used only in a most restricted way. Normally, you'll say "using std::foo" if you use foo a lot. You will say "using namespace std" only in another namespace you control, usually a block. Anybody who puts "using namespace std" in a header file outside any namespace is being a bad citizen indeed. Nathan Myers myerns@roguewave.com --- [ 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:
<ncmDD7u7C.K29@netcom.com>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<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!in1.uu.net!bounce-back Date: 15 Aug 95 02:43:27 GMT Approved: fjh@cs.mu.oz.au Return-Path: <daemon@ncar.UCAR.EDU> Newsgroups: comp.std.c++ From: ncm@netcom.com (Nathan Myers) Subject: Re: STL operators != > <= >= Message-ID: <ncmDD7u7C.K29@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3vpmv5$4t7@mujibur.inmind.com> <3vqnqf$kst@hardcopy.ny.jpmorgan.com> <407les$fjs@metro.ucc.su.oz.au> X-Original-Date: Sat, 12 Aug 1995 20:57:12 GMT Apparently-To: comp-std-c++@uunet.uu.net