From 2251b1d2df3d85e162a29a1999fd1fb9521b5b77 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Sat, 26 Apr 2008 06:36:59 +0000 Subject: [PATCH] No need for the new ctors to be templates [SVN r44772] --- include/boost/shared_ptr.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index 88fab8f..1aa6ecc 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -228,8 +228,7 @@ public: { } - template - 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 - 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 { }