forked from boostorg/optional
Remove deprecation mark from reset()
The `std::optional` has `reset()` [optional.mod] and it is not deprecated.
This commit is contained in:
committed by
Andrzej Krzemienski
parent
106f9aee5e
commit
bebc606a4c
@ -196,11 +196,10 @@ They are empty, trivially copyable classes with disabled default constructor.
|
|||||||
|
|
||||||
bool operator!() const noexcept ; ``[link reference_optional_operator_not __GO_TO__]``
|
bool operator!() const noexcept ; ``[link reference_optional_operator_not __GO_TO__]``
|
||||||
|
|
||||||
// deprecated methods
|
|
||||||
|
|
||||||
// (deprecated)
|
|
||||||
void reset() noexcept ; ``[link reference_optional_reset __GO_TO__]``
|
void reset() noexcept ; ``[link reference_optional_reset __GO_TO__]``
|
||||||
|
|
||||||
|
// deprecated methods
|
||||||
|
|
||||||
// (deprecated)
|
// (deprecated)
|
||||||
void reset ( T const& ) ; ``[link reference_optional_reset_value __GO_TO__]``
|
void reset ( T const& ) ; ``[link reference_optional_reset_value __GO_TO__]``
|
||||||
|
|
||||||
@ -275,11 +274,10 @@ They are empty, trivially copyable classes with disabled default constructor.
|
|||||||
|
|
||||||
bool operator!() const noexcept ; ``[link reference_optional_ref_operator_not __GO_TO__]``
|
bool operator!() const noexcept ; ``[link reference_optional_ref_operator_not __GO_TO__]``
|
||||||
|
|
||||||
// deprecated methods
|
|
||||||
|
|
||||||
// (deprecated)
|
|
||||||
void reset() noexcept ; ``[link reference_optional_ref_reset __GO_TO__]``
|
void reset() noexcept ; ``[link reference_optional_ref_reset __GO_TO__]``
|
||||||
|
|
||||||
|
// deprecated methods
|
||||||
|
|
||||||
// (deprecated)
|
// (deprecated)
|
||||||
template<class R> void reset ( R && r ) noexcept ; ``[link reference_optional_ref_reset_value __GO_TO__]``
|
template<class R> void reset ( R && r ) noexcept ; ``[link reference_optional_ref_reset_value __GO_TO__]``
|
||||||
|
|
||||||
|
@ -541,7 +541,7 @@ __SPACE__
|
|||||||
[#reference_optional_reset]
|
[#reference_optional_reset]
|
||||||
|
|
||||||
[: `void optional<T>::reset() noexcept ;`]
|
[: `void optional<T>::reset() noexcept ;`]
|
||||||
* [*Deprecated:] Same as `operator=( none_t );`
|
* [*Effects:] Same as `operator=( none_t );`
|
||||||
|
|
||||||
__SPACE__
|
__SPACE__
|
||||||
|
|
||||||
@ -1129,8 +1129,7 @@ __SPACE__
|
|||||||
|
|
||||||
[#reference_optional_ref_reset]
|
[#reference_optional_ref_reset]
|
||||||
[: `void optional<T&>::reset() noexcept;`]
|
[: `void optional<T&>::reset() noexcept;`]
|
||||||
* [*Effects:] Use `*this = none` instead.
|
* [*Effects:] Same as `*this = none`.
|
||||||
* [*Remarks:] This function is depprecated.
|
|
||||||
|
|
||||||
__SPACE__
|
__SPACE__
|
||||||
|
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
|
|
||||||
[section:relnotes Release Notes]
|
[section:relnotes Release Notes]
|
||||||
|
|
||||||
|
[heading Boost Release 1.69]
|
||||||
|
|
||||||
|
* Remove deprecation mark from `reset()` method (without arguments).
|
||||||
|
|
||||||
[heading Boost Release 1.68]
|
[heading Boost Release 1.68]
|
||||||
|
|
||||||
* Added member function `has_value()` for compatibility with `std::optional` ([@https://github.com/boostorg/optional/issues/52 issue #52]).
|
* Added member function `has_value()` for compatibility with `std::optional` ([@https://github.com/boostorg/optional/issues/52 issue #52]).
|
||||||
|
@ -332,7 +332,7 @@ class optional_base : public optional_tag
|
|||||||
|
|
||||||
public :
|
public :
|
||||||
|
|
||||||
// **DEPPRECATED** Destroys the current value, if any, leaving this UNINITIALIZED
|
// Destroys the current value, if any, leaving this UNINITIALIZED
|
||||||
// No-throw (assuming T::~T() doesn't)
|
// No-throw (assuming T::~T() doesn't)
|
||||||
void reset() BOOST_NOEXCEPT { destroy(); }
|
void reset() BOOST_NOEXCEPT { destroy(); }
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ class tc_optional_base : public optional_tag
|
|||||||
|
|
||||||
public :
|
public :
|
||||||
|
|
||||||
// **DEPPRECATED** Destroys the current value, if any, leaving this UNINITIALIZED
|
// Destroys the current value, if any, leaving this UNINITIALIZED
|
||||||
// No-throw (assuming T::~T() doesn't)
|
// No-throw (assuming T::~T() doesn't)
|
||||||
void reset() BOOST_NOEXCEPT { destroy(); }
|
void reset() BOOST_NOEXCEPT { destroy(); }
|
||||||
|
|
||||||
|
@ -378,7 +378,7 @@ class optional_base : public optional_tag
|
|||||||
|
|
||||||
public :
|
public :
|
||||||
|
|
||||||
// **DEPPRECATED** Destroys the current value, if any, leaving this UNINITIALIZED
|
// Destroys the current value, if any, leaving this UNINITIALIZED
|
||||||
// No-throw (assuming T::~T() doesn't)
|
// No-throw (assuming T::~T() doesn't)
|
||||||
void reset() BOOST_NOEXCEPT { destroy(); }
|
void reset() BOOST_NOEXCEPT { destroy(); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user