Rvalue auto_ptr constructor is no longer explicit.

[SVN r33526]
This commit is contained in:
Peter Dimov
2006-03-29 19:19:14 +00:00
parent e38d0daaab
commit 747c9a1d3e

View File

@ -236,7 +236,7 @@ public:
#if !defined( BOOST_NO_SFINAE ) && !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
template<class Ap>
explicit shared_ptr( Ap r, typename boost::detail::sp_enable_if_auto_ptr<Ap, int>::type = 0 ): px( r.get() ), pn()
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 );