|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81260 - trunk/boost/smart_ptr
From: pdimov_at_[hidden]
Date: 2012-11-09 07:37:04
Author: pdimov
Date: 2012-11-09 07:37:03 EST (Fri, 09 Nov 2012)
New Revision: 81260
URL: http://svn.boost.org/trac/boost/changeset/81260
Log:
Disable make_shared for arrays when the compiler doesn't support partial specialization or SFINAE.
Text files modified:
trunk/boost/smart_ptr/make_shared.hpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/boost/smart_ptr/make_shared.hpp
==============================================================================
--- trunk/boost/smart_ptr/make_shared.hpp (original)
+++ trunk/boost/smart_ptr/make_shared.hpp 2012-11-09 07:37:03 EST (Fri, 09 Nov 2012)
@@ -13,7 +13,10 @@
// for documentation.
#include <boost/smart_ptr/make_shared_object.hpp>
-#include <boost/smart_ptr/make_shared_array.hpp>
-#include <boost/smart_ptr/allocate_shared_array.hpp>
+
+#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) && !defined( BOOST_NO_SFINAE )
+# include <boost/smart_ptr/make_shared_array.hpp>
+# include <boost/smart_ptr/allocate_shared_array.hpp>
+#endif
#endif // #ifndef BOOST_SMART_PTR_MAKE_SHARED_HPP_INCLUDED
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