Article View: comp.std.c++
Article #1878Re: C++ Standard Libraries?
From: Steve Clamage
Date: Thu, 31 Aug 1995 18:19
Date: Thu, 31 Aug 1995 18:19
30 lines
1686 bytes
1686 bytes
In article qhc@calum.csclub.uwaterloo.ca, rridge@calum.csclub.uwaterloo.ca (Ross Ridge) writes: >Steve Clamage <clamage@Eng.Sun.COM> wrote: >>You can add your own "using namespace std;" if you want, which will bring >>the entire contents of the "std" namespace into scope (but just for those >>headers which you include). > >Is that true? I thought, according to the last public draft, if you >include any standard header you could also be getting any or all other >standard headers. > > [I think Ross Ridge is right. -fjh (moderator).] Sorry. I didn't express that very clearly. If you include a standard header, it in turn might indeed include other standard headers. But using namespace std; will affect only the declarations in the headers that actually do get included. The using-directive by itself does not pull the entire set of library declarations into your program. Perhaps that is too obvious, and I needn't have mentioned it. --- Steve Clamage, stephen.clamage@eng.sun.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:
<MATT.95Aug31111938@physics10.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<41qond$qhc@calum.csclub.uwaterloo.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: clamage@Eng.Sun.COM (Steve Clamage) Newsgroups: comp.std.c++ Subject: Re: C++ Standard Libraries? Date: 31 Aug 1995 18:19:38 GMT Organization: Sun Microsystems Inc. Approved: matt@physics10.Berkeley.EDU (Matt Austern) Message-ID: <MATT.95Aug31111938@physics10.Berkeley.EDU> References: <41qond$qhc@calum.csclub.uwaterloo.ca> Reply-To: clamage@Eng.Sun.COM NNTP-Posting-Host: physics10.berkeley.edu