Disable make_shared for arrays when the compiler doesn't support partial specialization or SFINAE.

[SVN r81260]
This commit is contained in:
Peter Dimov
2012-11-09 12:37:03 +00:00
parent d512eaaa0f
commit 999c284109

View File

@ -13,7 +13,10 @@
// for documentation. // for documentation.
#include <boost/smart_ptr/make_shared_object.hpp> #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 #endif // #ifndef BOOST_SMART_PTR_MAKE_SHARED_HPP_INCLUDED