From 999c284109d759c1c97fbc624bd4a2f024278254 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 9 Nov 2012 12:37:03 +0000 Subject: [PATCH] Disable make_shared for arrays when the compiler doesn't support partial specialization or SFINAE. [SVN r81260] --- include/boost/smart_ptr/make_shared.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/boost/smart_ptr/make_shared.hpp b/include/boost/smart_ptr/make_shared.hpp index 6b2bd27..8d0e3ea 100644 --- a/include/boost/smart_ptr/make_shared.hpp +++ b/include/boost/smart_ptr/make_shared.hpp @@ -13,7 +13,10 @@ // for documentation. #include -#include -#include + +#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) && !defined( BOOST_NO_SFINAE ) +# include +# include +#endif #endif // #ifndef BOOST_SMART_PTR_MAKE_SHARED_HPP_INCLUDED