mirror of
https://github.com/boostorg/move.git
synced 2025-08-02 13:44:28 +02:00
Fixed Trac #11510 ("unique_ptr: -Wshadow warning issued")
This commit is contained in:
@@ -768,6 +768,7 @@ Many thanks to all boosters that have tested, reviewed and improved the library.
|
|||||||
from convertible types returned by value.
|
from convertible types returned by value.
|
||||||
* Fixed bug:
|
* Fixed bug:
|
||||||
* [@https://svn.boost.org/trac/boost/ticket/11229 Trac #11229: ['"vector incorrectly copies move-only objects using memcpy"]],
|
* [@https://svn.boost.org/trac/boost/ticket/11229 Trac #11229: ['"vector incorrectly copies move-only objects using memcpy"]],
|
||||||
|
* [@https://svn.boost.org/trac/boost/ticket/11510 Trac #11510: ['"unique_ptr: -Wshadow warning issued"]],
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
@@ -105,8 +105,8 @@ struct unique_ptr_data
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
template <class U>
|
template <class U>
|
||||||
unique_ptr_data(P p, BOOST_FWD_REF(U) d) BOOST_NOEXCEPT
|
unique_ptr_data(P p, BOOST_FWD_REF(U) d1) BOOST_NOEXCEPT
|
||||||
: m_p(p), d(::boost::forward<U>(d))
|
: m_p(p), d(::boost::forward<U>(d1))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
del_ref deleter() { return d; }
|
del_ref deleter() { return d; }
|
||||||
|
Reference in New Issue
Block a user