| 505 | |
| 506 | template<class Y> |
| 507 | explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn() |
| 508 | { |
| 509 | boost::detail::sp_assert_convertible< Y, T >(); |
| 510 | |
| 511 | Y * tmp = r.get(); |
| 512 | pn = boost::detail::shared_count( r ); |
| 513 | |
| 514 | boost::detail::sp_deleter_construct( this, tmp ); |
| 515 | } |
| 516 | |
| 517 | #if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES ) |
| 518 |
nothing calls this directly
no test coverage detected