[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