mirror of
https://github.com/boostorg/tuple.git
synced 2025-07-30 12:47:17 +02:00
fixed tuples::length not having a specialization for const tuple<> and const null_type
[SVN r51862]
This commit is contained in:
@ -213,7 +213,7 @@ struct element_impl<0, T, true /* IsConst */>
|
|||||||
|
|
||||||
|
|
||||||
template<int N, class T>
|
template<int N, class T>
|
||||||
struct element:
|
struct element:
|
||||||
public detail::element_impl<N, T, ::boost::is_const<T>::value>
|
public detail::element_impl<N, T, ::boost::is_const<T>::value>
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
@ -488,11 +488,20 @@ struct length<tuple<> > {
|
|||||||
BOOST_STATIC_CONSTANT(int, value = 0);
|
BOOST_STATIC_CONSTANT(int, value = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct length<tuple<> const> {
|
||||||
|
BOOST_STATIC_CONSTANT(int, value = 0);
|
||||||
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct length<null_type> {
|
struct length<null_type> {
|
||||||
BOOST_STATIC_CONSTANT(int, value = 0);
|
BOOST_STATIC_CONSTANT(int, value = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct length<null_type const> {
|
||||||
|
BOOST_STATIC_CONSTANT(int, value = 0);
|
||||||
|
};
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user