>>The following alternatives DON'T work:
>>>
wurst::foobla(foo,2)
This is OK.
No, it isn't. (At least, if it isn't a gcc bug)
gcc says something like "no member foobla in wurst".
OK, minimal non-compiling example:
namespace wurst {
class bla {
friend bool foobla(const bla& v, int x) {
return true;
}
};
}
int main()
{
wurst::bla foo;
wurst::foobla(foo, 2);
return 0;
}
LANG=C g++ test.cpp gives:
test.cpp: In function 'int main()':
test.cpp:12: error: 'foobla' is not a member of 'wurst'