集成体初期化の拡張 -- Merge pull request #896 from cpprefjp/fixtypo_extension_to_aggregate_initialization

1 · cpprefjp · Sept. 4, 2021, 5:49 a.m.
diff --git a/lang/cpp17/extension_to_aggregate_initialization.md b/lang/cpp17/extension_to_aggregate_initialization.md index af3bdeb8a..d3648db38 100644 --- a/lang/cpp17/extension_to_aggregate_initialization.md +++ b/lang/cpp17/extension_to_aggregate_initialization.md @@ -18,13 +18,13 @@ C++17 から集成体初期化が拡張され、基底クラスを持つ型の struct base_a { std::string s; }; struct base_b { double d; std::vector< int > vi; }; -struct delived: base_a, base_b { char c; }; +struct derived: base_a, base_b { char c; }; ...