From 7da1c4b310af70abf92c10786ebf6d0d0072a721 Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Sun, 4 Jun 2006 11:01:59 +0000 Subject: [PATCH] Remove size zero support for old compilers that do not support partial template specialization [SVN r34161] --- 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