Group: comp.lang.c++
From: =?ISO-8859-15?Q?Sven_K=F6hler?=
Date: Thursday, April 10, 2008 7:16 PM
Subject: friend declared function call

Hi,

so i have some strange class declaration, which looks like this:


namespace wurst {
class bla {
friend bool foobla(const bla& v, int x) {
return true;
}
};
}


With this, the following code works:

wurst::bla foo;
foobla(foo, 2);


How do i access foobla in a more specific way? What the "full qualified
name" of foobla?

The following alternatives DON'T work:

wurst::foobla(foo,2)
wurst::bla::foobla(foo, 2);

Can you give a working alternative?


Regards,
Sven