Skip to content

Commit

Permalink
mention CTAD in std comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
akrzemi1 committed Sep 14, 2024
1 parent 07b689f commit cb68f60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/91_comparison_with_std.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

[table
[]
[ [[*`boost::opitonal`]] [[*`std::optional`]] [] ]
[ [[*`boost::optional`]] [[*`std::optional`]] [] ]
[ [`optional<int> o = none;`] [`optional<int> o = nullopt;`] [Different name for no-value tag.] ]
[ [`optional<X> o {in_place_init, a, b};`] [`optional<int> o {in_place, a, b};`] [Different name for in-place initialization tag.] ]
[ [] [`optional<vector<int>> o {in_place, {1, 2, 3}};`] [No in-place initialization with initializer-list in `boost`.] ]
Expand All @@ -24,6 +24,7 @@
`optional<T> o {optional<U>{}};`] [`optional<T> o = U{};`

`optional<T> o = optional<U>{}`] [Constructors form `U` and `optional<U>` 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<X const&> o;`] [] [No optional references in `std`.] ]
[ [] [`constexpr optional<int> o;`] [No `constexpr` interface in `boost`.] ]
[ [`o.map(&f);`
Expand All @@ -35,7 +36,7 @@
[ [`o.value_or_eval(&f);`] [] [No `value_or_eval` function in `std`.] ]
[ [] [`optional<T>{} == U{}`;

`opitonal<T>{} == opitonal<U>{}`] [No comparisons with `U` or `optional<U>` in `boost`.] ]
`optional<T>{} == optional<U>{}`] [No comparisons with `U` or `optional<U>` in `boost`.] ]
[ [`make_optional(cond, v);`] [] [No `make_optional` with condition in `std`.] ]
[ [] [`make_optional<T>(a, b);`] [No `make_optional` with specified `T` in `boost`.] ]
]
Expand Down

0 comments on commit cb68f60

Please sign in to comment.