No need for the new ctors to be templates

[SVN r44772]
This commit is contained in:
Daniel Frey
2008-04-26 06:36:59 +00:00
parent 8b3907ae81
commit 2251b1d2df

View File

@ -228,8 +228,7 @@ public:
{
}
template<class Y>
shared_ptr(detail::shared_count const & c, Y * p): px(p), pn(c) // never throws
shared_ptr(detail::shared_count const & c, T * p): px(p), pn(c) // never throws
{
}
@ -346,8 +345,7 @@ public:
r.px = 0;
}
template<class Y>
shared_ptr(detail::shared_count && c, Y * p): px(p), pn( static_cast< detail::shared_count && >( c ) ) // never throws
shared_ptr(detail::shared_count && c, T * p): px(p), pn( static_cast< detail::shared_count && >( c ) ) // never throws
{
}