回答編集履歴

2

ref

2019/12/09 12:53

投稿

yumetodo
yumetodo

スコア5850

test CHANGED
@@ -33,3 +33,13 @@
33
33
 
34
34
 
35
35
  [https://wandbox.org/permlink/2r0i28hB2ykPzk1U](https://wandbox.org/permlink/2r0i28hB2ykPzk1U)
36
+
37
+
38
+
39
+ ref:
40
+
41
+
42
+
43
+ - [本の虫: aggregateと初期化リストの不思議](https://cpplover.blogspot.com/2010/09/aggregate.html)
44
+
45
+ - [[C++]集成体の要件とその変遷 - 地面を見下ろす少年の足蹴にされる私](https://onihusube.hatenablog.com/entry/2019/02/22/201044)

1

constexpr

2019/12/09 12:53

投稿

yumetodo
yumetodo

スコア5850

test CHANGED
@@ -28,4 +28,8 @@
28
28
 
29
29
 
30
30
 
31
- これでどうでしょうか。
31
+ これでどうでしょうか。`memset`なんざ持ち出す必要は一ミリもありません。というからmemset使ったらconstexprにできないですし。
32
+
33
+
34
+
35
+ [https://wandbox.org/permlink/2r0i28hB2ykPzk1U](https://wandbox.org/permlink/2r0i28hB2ykPzk1U)