LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] xvoice and the std namespace...

[ILUG] xvoice and the std namespace...

Padraig Brady Padraig at AnteFacto.com
Mon Jul 2 19:32:44 IST 2001


You can put this @ the top of the module (after the includes):
using namespace std;

http://www.cplusplus.com/doc/tutorial/tut5-2.html

Padraig.

kevin lyda wrote:

>with relation to my Error.h issue and gcc 3.0, i discovered:
>
>gcc 3.0 loves namespaces.  i don't know much about them, but i'm leaning
>towards "fscking annoying" at the moment.  i'll read up more, but to
>move things along preface each occurance of string with std::string -
>this will get xvoice further along the path to compiling under 3.0.
>now, any c++ guru's care to share how to deal with this?
>
>i dimly recall that you can import namespaces into your current one (which
>i thought defaulted to std, but i'm incorrect i guess).  i also have a
>suspicion this is not stylish.  the problem that i'm trying to solve is:
>
>    class foozle: public string {
>	...
>    };
>
>needs to read (based on what i just tried):
>
>    class foozle: public std::string {
>	...
>    };
>
>kevin
>






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell