From f97e43ce13fa1dd8d145b7e242ae31a2e03d80f4 Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Sun, 15 Sep 2024 21:12:34 +0200 Subject: [PATCH] update docs for comparison with std --- doc/91_comparison_with_std.qbk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/91_comparison_with_std.qbk b/doc/91_comparison_with_std.qbk index f407ab0..e72dd46 100644 --- a/doc/91_comparison_with_std.qbk +++ b/doc/91_comparison_with_std.qbk @@ -16,7 +16,9 @@ [ [[*`boost::optional`]] [[*`std::optional`]] [] ] [ [`optional o = none;`] [`optional o = nullopt;`] [Different name for no-value tag.] ] [ [`optional o {in_place_init, a, b};`] [`optional o {in_place, a, b};`] [Different name for in-place initialization tag.] ] - [ [] [`optional> o {in_place, {1, 2, 3}};`] [No in-place initialization with initializer-list in `boost`.] ] + [ [] [`optional> o {in_place, {1, 2, 3}};` + + `o.emplace({4, 5, 6});`] [No in-place initialization with initializer-list in `boost`.] ] [ [`optional o {in_place_init_if, cond, a, b};`] [] [No syntax for conditional in-place initialization in `std`.] ] [ [`optional o {cond, x};`] [] [No syntax for conditional initialization from `T` in `std`.] ] [ [`optional o {U{}};` @@ -39,6 +41,7 @@ `optional{} == optional{}`] [No comparisons with `U` or `optional` in `boost`.] ] [ [`make_optional(cond, v);`] [] [No `make_optional` with condition in `std`.] ] [ [] [`make_optional(a, b);`] [No `make_optional` with specified `T` in `boost`.] ] + [ [`std::cout << optional{};`] [] [No printing to IOStreams in `std`.]] ]