Static functions
Richard Smith
kde at metafoo.co.uk
Mon Feb 16 15:01:07 GMT 2004
On Monday 16 February 2004 2:50 pm, Dirk Mueller wrote:
> On Monday 16 February 2004 15:33, Richard Smith wrote:
> > > As a proof, try to compile your example. It does not compile (nor
> > > work).
> >
> > Maybe your compiler is broken. Works fine here.
>
> so your compiler can compile this?
I hit it with this:
namespace MyFunctions
{
static void function();
}
void foo()
{
MyFunctions::function();
}
void MyFunctions::function() {}
int main() { return 0; }
Compiled, linked, and ran.
> let me see it.
It's called g++ 3.2.3. I wouldn't be surprised if you can see it in your own
box.
Richard
More information about the kde-core-devel
mailing list