Topic: Lumping ::std & Monterey (was: STL <iostream> vs. <iostream.h>)
Author: vandevod@cs.rpi.edu (David Vandevoorde)
Date: 1995/10/14 Raw View
>>>>> "JM" == Jason Merrill <jason@cygnus.com> writes:
[...]
JM> Nope; << is looked up in the context of ostream, which is namespace std, so
JM> the definition there is found. This is known as 'Koenig lookup'.
[...]
Cool! I just needed this.
Vaguely related: say I want to pull everything that has to do with
valarrays (more precisely: all the classes and functions described
(in 26.3)) in my program, but I'd rather not pull in all of ::std.
(And I don't want to issue dozens of `using's either.)
Can a DWP conforming namespace be set up for this? I'm thinking along
the lines of lumping ::std into a nested partition (std::valarrays,
std::iostreams, ...).
You quoted Monterey-added text. Anyone volunteer to describe the major
changes of the latest draft wrt. the April'95 version?
Daveed
---
[ 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. ]