Merge [52454] to release. Fixes #2951.

[SVN r52472]
This commit is contained in:
Peter Dimov
2009-04-18 21:32:43 +00:00
parent 28de0cb1e3
commit a4293f9dfa
3 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -277,7 +277,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 );