diff --git a/doc/91_comparison_with_std.qbk b/doc/91_comparison_with_std.qbk index 5d631d6..f407ab0 100644 --- a/doc/91_comparison_with_std.qbk +++ b/doc/91_comparison_with_std.qbk @@ -13,7 +13,7 @@ [table [] - [ [[*`boost::opitonal`]] [[*`std::optional`]] [] ] + [ [[*`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`.] ] @@ -24,6 +24,7 @@ `optional o {optional{}};`] [`optional o = U{};` `optional o = optional{}`] [Constructors form `U` and `optional` are explicit in `boost` and implicit in `std`.] ] + [ [] [`optional o = 1;`] [No clever deduction of of `optional`'s template parameters in initialization in `boost`. ]] [ [`optional o;`] [] [No optional references in `std`.] ] [ [] [`constexpr optional o;`] [No `constexpr` interface in `boost`.] ] [ [`o.map(&f);` @@ -35,7 +36,7 @@ [ [`o.value_or_eval(&f);`] [] [No `value_or_eval` function in `std`.] ] [ [] [`optional{} == U{}`; - `opitonal{} == opitonal{}`] [No comparisons with `U` or `optional` in `boost`.] ] + `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`.] ] ]