Код: Выделить всё
namespace A
{
class window
{
private:
int a;
friend void f(window);
};
}
void f(A::window rhs)
{
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/10934226/class-friend-function-inside-a-namespace[/url]Код: Выделить всё
namespace A
{
class window
{
private:
int a;
friend void f(window);
};
}
void f(A::window rhs)
{
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/10934226/class-friend-function-inside-a-namespace[/url]