Skip to content

Commit

Permalink
Fixed Trac #11510 ("unique_ptr: -Wshadow warning issued")
Browse files Browse the repository at this point in the history
  • Loading branch information
igaztanaga committed Jul 31, 2015
1 parent 49a42a2 commit b88cfca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/move.qbk
Expand Up @@ -768,6 +768,7 @@ Many thanks to all boosters that have tested, reviewed and improved the library.
from convertible types returned by value.
* 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/11510 Trac #11510: ['"unique_ptr: -Wshadow warning issued"]],

[endsect]

Expand Down
4 changes: 2 additions & 2 deletions include/boost/move/unique_ptr.hpp
Expand Up @@ -105,8 +105,8 @@ struct unique_ptr_data
{}

template <class U>
unique_ptr_data(P p, BOOST_FWD_REF(U) d) BOOST_NOEXCEPT
: m_p(p), d(::boost::forward<U>(d))
unique_ptr_data(P p, BOOST_FWD_REF(U) d1) BOOST_NOEXCEPT
: m_p(p), d(::boost::forward<U>(d1))
{}

del_ref deleter() { return d; }
Expand Down

0 comments on commit b88cfca

Please sign in to comment.