Fix unused argument warning

boost/optional/optional.hpp:970:5: warning: unused parameter 'rhs' [-Wunused-parameter]
This commit is contained in:
Nikita Kniazev
2019-02-28 00:13:00 +03:00
committed by GitHub
parent 545fd9a72f
commit ee575b34c5

View File

@ -967,7 +967,7 @@ class optional
// Can throw if T::T(T&&) does
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_MOVE_FUNCTIONS
optional ( optional && rhs ) = default;
optional ( optional && ) = default;
#else
optional ( optional && rhs )
BOOST_NOEXCEPT_IF(::boost::is_nothrow_move_constructible<T>::value)