docs: updated gotchas section

This commit is contained in:
Andrzej Krzemienski
2016-09-17 01:25:12 +02:00
parent 3e0051be7e
commit 62acbe1690
20 changed files with 458 additions and 84 deletions

View File

@ -770,6 +770,7 @@ __SPACE__
[: `template<class R> optional<T&>::optional(R&& r) noexcept;`]
* [*Postconditions:] `bool(*this) == true`; `addressof(**this) == addressof(r)`.
* [*Remarks:] Unless `R` is an lvalue reference, the program is ill-formed. This constructor does not participate in overload resolution if `decay<R>` is an instance of `boost::optional`.
* [*Notes:] This constructor is declared `explicit` on compilers that do not correctly suport binding to const lvalues of integral types. For more details [link optional_reference_binding see here].
* [*Example:]
``
T v;