|
Boost-Commit : |
From: d.frey_at_[hidden]
Date: 2008-04-26 02:37:00
Author: daniel_frey
Date: 2008-04-26 02:36:59 EDT (Sat, 26 Apr 2008)
New Revision: 44772
URL: http://svn.boost.org/trac/boost/changeset/44772
Log:
No need for the new ctors to be templates
Text files modified:
trunk/boost/shared_ptr.hpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
Modified: trunk/boost/shared_ptr.hpp
==============================================================================
--- trunk/boost/shared_ptr.hpp (original)
+++ trunk/boost/shared_ptr.hpp 2008-04-26 02:36:59 EDT (Sat, 26 Apr 2008)
@@ -228,8 +228,7 @@
{
}
- 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 @@
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
{
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk