forked from boostorg/array
Remove size zero support for old compilers that do not support partial template specialization
[SVN r34162]
This commit is contained in:
@ -162,6 +162,7 @@ namespace boost {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
template< class T >
|
template< class T >
|
||||||
class array< T, 0 > {
|
class array< T, 0 > {
|
||||||
|
|
||||||
@ -273,8 +274,8 @@ namespace boost {
|
|||||||
static void failed_rangecheck () {
|
static void failed_rangecheck () {
|
||||||
throw std::range_error("attempt to access element of an empty array");
|
throw std::range_error("attempt to access element of an empty array");
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
// comparisons
|
// comparisons
|
||||||
template<class T, std::size_t N>
|
template<class T, std::size_t N>
|
||||||
|
Reference in New Issue
Block a user