Merge pull request #23 from a-n-t-h-o-n-y/Fix2

Fix emplace Signature
This commit is contained in:
Andrzej Krzemieński
2016-09-12 09:07:27 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@
template<class U> optional& operator = ( optional<U>&& rhs ) ; ``[link reference_optional_operator_move_equal_other_optional __GO_TO__]``
template<class... Args> void emplace ( Args...&& args ) ; ``[link reference_optional_emplace __GO_TO__]``
template<class... Args> void emplace ( Args&&... args ) ; ``[link reference_optional_emplace __GO_TO__]``
template<class InPlaceFactory> optional& operator = ( InPlaceFactory const& f ) ; ``[link reference_optional_operator_equal_factory __GO_TO__]``

View File

@ -446,7 +446,7 @@ __SPACE__
[#reference_optional_emplace]
[: `template<class... Args> void optional<T>::emplace( Args...&& args );`]
[: `template<class... Args> void optional<T>::emplace( Args&&... args );`]
* [*Requires:] The compiler supports rvalue references and variadic templates.
* [*Effect:] If `*this` is initialized calls `*this = none`.