adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] ::gui::base::method???


From: Joel Vennin
Subject: Re: [Adonthell-devel] ::gui::base::method???
Date: Mon, 09 Feb 2004 13:16:17 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

Kai Sterker wrote:

It seems that writing something like ::gui::base::method() isn't really portable. gcc 3.3 had problems with it if the method had a return value:

../../../adonthell/src/gui/base.cc:76: error: no type named `gui' in `bool' ../../../adonthell/src/gui/base.cc:76: error: no type named `base' in `<type
   error>'
../../../adonthell/src/gui/base.cc:76: warning: ISO C++ forbids declaration of
   `update' with no type

So I removed the leading '::' and everything was fine. What use does it have anyway? (Or was it just a typo?) Hop

that is okay.

Hello kay nice to see you :p.

What version of gcc you used ? I'm using gcc 3.3.2 the :: is in the C++ specification. I've use it because there is a name space called base. And i've a class with the same name. So when i include some headers which inculdes the namespace base there is a problem. So the only way is to used gui::base .... But about :: it's a stardard ...


Jol


Kai



_______________________________________________
Adonthell-devel mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/adonthell-devel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]