Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81230 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2012-11-07 10:00:25


Author: pdimov
Date: 2012-11-07 10:00:24 EST (Wed, 07 Nov 2012)
New Revision: 81230
URL: http://svn.boost.org/trac/boost/changeset/81230

Log:
Fix sp_convertible<T const[], T const[]>.
Text files modified:
   trunk/boost/smart_ptr/detail/sp_convertible.hpp | 19 ++-----------------
   1 files changed, 2 insertions(+), 17 deletions(-)

Modified: trunk/boost/smart_ptr/detail/sp_convertible.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/sp_convertible.hpp (original)
+++ trunk/boost/smart_ptr/detail/sp_convertible.hpp 2012-11-07 10:00:24 EST (Wed, 07 Nov 2012)
@@ -53,24 +53,9 @@
     enum _vt { value = false };
 };
 
-template< class T > struct sp_convertible< T[], T[] >
+template< class Y, class T > struct sp_convertible< Y[], T[] >
 {
- enum _vt { value = true };
-};
-
-template< class T > struct sp_convertible< T[], T const [] >
-{
- enum _vt { value = true };
-};
-
-template< class T > struct sp_convertible< T[], T volatile [] >
-{
- enum _vt { value = true };
-};
-
-template< class T > struct sp_convertible< T[], T const volatile [] >
-{
- enum _vt { value = true };
+ enum _vt { value = sp_convertible< Y[1], T[1] >::value };
 };
 
 struct sp_empty


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