diff --git a/lang/cpp20/deprecate_implicit_capture_of_this_via_defcopy.md b/lang/cpp20/deprecate_implicit_capture_of_this_via_defcopy.md index 6f66c2db7..c557cb099 100644 --- a/lang/cpp20/deprecate_implicit_capture_of_this_via_defcopy.md +++ b/lang/cpp20/deprecate_implicit_capture_of_this_via_defcopy.md @@ -21,7 +21,7 @@ struct X { }; auto y = [=, this] { // C++20から推奨される方法: - return value + g(); // [=]ではthisポインタはキャプチャされなくなるため、thisを指定してキャプチャすること + return value + g(); // [=, this]と別々に指定することで、thisポインタもキャプチャしていることが明示される }; } diff --git a/reference/charconv/from_chars.md b/reference/charconv/from_chars.md index fe8be9296..d23eec298 100644 --- a/reference/charconv/from_chars.md +++ b/reference/charconv/from_chars.md @@ -121,6 +121,7 @@ C++標準はこれら関数の実装の詳細について何も規定しない ```cpp example #include +#include #include int main() diff --git a/reference/type_traits/is_trivially_copyable.md b/reference/type_traits/is_trivially_copyable.md index 7cb491a8c..52671bec7 100644 --- a/reference/type_traits/is_trivially_copyable.md +++ b/reference/type_traits/is_trivially_copyable.md @@ -70,7 +70,7 @@ struct optional { = default; // #2 optional(optional const& rhs) - requires copy_constructible; + requires std::copy_constructible; }; ``` * std::is_trivially_copy_constructible_v[link /reference/type_traits/is_trivially_copy_constructible.md]