From 4c5212f5e45db2fd28c3c190137903aeba43372c Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Sun, 4 Jun 2006 12:10:17 +0000 Subject: [PATCH] Remove size zero support for old compilers that do not support partial template specialization [SVN r34162] --- include/boost/array.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/array.hpp b/include/boost/array.hpp index 841ed76..102664e 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -162,6 +162,7 @@ namespace boost { }; +#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) template< class T > class array< T, 0 > { @@ -273,8 +274,8 @@ namespace boost { static void failed_rangecheck () { throw std::range_error("attempt to access element of an empty array"); } - }; +#endif // comparisons template