回答編集履歴
1
refinement
test
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
変換先型`To`に対する「デフォルトコンストラクタの要求」有無が異なると思います。より汎用性の高い実装では、デフォルトコンストラクタを必要としない`std::aligned_storage`が必要となります。
|
5
|
+
変換先型`To`に対する「デフォルトコンストラクタの要求」有無が異なると思います。より汎用性の高い実装では、デフォルトコンストラクタを必要としない `std::aligned_storage` が必要となります。
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
cpprefjpの文言は、提案文書 [P0476R2](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0476r2.html) からの引用・翻訳と思われます。
|
9
|
+
cpprefjpの文言は、提案文書 [P0476R2](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0476r2.html) からの引用・翻訳と思われます。原文後半には`aligned_storage`が必要となる理由への言及があります(太字)。
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
> Attuned developers use `aligned_storage` with `memcpy`, avoiding alignment pitfalls and allowing them to bit-cast non-default-constructible types.
|
13
|
+
> Attuned developers use `aligned_storage` with `memcpy`, avoiding alignment pitfalls and **allowing them to bit-cast non-default-constructible types**.
|
14
14
|
|
15
15
|
|
16
16
|
|