Bring back "explicit" on the auto_ptr rvalue constructor. Refs #2951.

[SVN r52454]
This commit is contained in:
Peter Dimov
2009-04-17 19:51:18 +00:00
parent 3dacec8e1d
commit 0368a37fde
3 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ public:
#if !defined( BOOST_NO_SFINAE ) && !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
template<class Ap>
shared_ptr( Ap r, typename boost::detail::sp_enable_if_auto_ptr<Ap, int>::type = 0 ): px( r.get() ), pn()
explicit shared_ptr( Ap r, typename boost::detail::sp_enable_if_auto_ptr<Ap, int>::type = 0 ): px( r.get() ), pn()
{
typename Ap::element_type * tmp = r.get();
pn = boost::detail::shared_count( r );