「不完全な型の無効な使用」の問題に陥ることなく、C ++でそのようなアイデアを実装するにはどうすればよいですか?
class A {
/*(...) some fields and methods here. */
class B {
/*(...) some fields and methods here. */
friend B A::fun();
};
B fun();
};
「不完全な型の無効な使用」の問題に陥ることなく、C ++でそのようなアイデアを実装するにはどうすればよいですか?
class A {
/*(...) some fields and methods here. */
class B {
/*(...) some fields and methods here. */
friend B A::fun();
};
B fun();
};