回答編集履歴

1

少し追記

2021/02/08 07:28

投稿

maisumakun
maisumakun

スコア145192

test CHANGED
@@ -1 +1 @@
1
- `class tmp1`の中では`static TestClass3 tmp3();`と宣言して、`TestClass3`の宣言も揃ったところで別途`static TestClass3 tmp1::tmp3()`の定義を行う、という方法はどうでしょうか?
1
+ `class tmp1`の中では`static TestClass3 tmp3();`と宣言だけして、`TestClass3`の宣言も揃ったところで別途`static TestClass3 tmp1::tmp3()`の定義を行う、という方法はどうでしょうか?