回答編集履歴

2

微修正

2021/02/28 01:32

投稿

episteme
episteme

スコア16614

test CHANGED
@@ -42,4 +42,4 @@
42
42
 
43
43
  なので、TEST(A,B) を friend とするには `friend class TEST_A_B_Test;` でよさげ。
44
44
 
45
- ※ あるいは `friend void TEST_A_B_Test::testBody()` か。
45
+ ※ あるいは `friend void TEST_A_B_Test::testBody();` か。

1

微修正

2021/02/28 01:32

投稿

episteme
episteme

スコア16614

test CHANGED
@@ -41,3 +41,5 @@
41
41
 
42
42
 
43
43
  なので、TEST(A,B) を friend とするには `friend class TEST_A_B_Test;` でよさげ。
44
+
45
+ ※ あるいは `friend void TEST_A_B_Test::testBody()` か。