>>>>> "kevin" == kevin lyda <kevin at suberic.net> writes:
kevin> i dimly recall that you can import namespaces into your current one
kevin> (which i thought defaulted to std, but i'm incorrect i guess). i
kevin> also have a suspicion this is not stylish. the problem that i'm
kevin> trying to solve is:
kevin> class foozle: public string { ... };
kevin> needs to read (based on what i just tried):
kevin> class foozle: public std::string { ... };
When you include <iostream> (instead of <iostream.h> since the latter is only
there for backwards compatibility :) ) you can just do
using namespace std;
to inject everything in the std namespace into your global namespace, which
will help you avoid having to add scope qualification on everything.
B
--
Brendan Kehoe brendan at zen.orghttp://www.zen.org/~brendan/
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!