|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51862 - trunk/boost/tuple/detail
From: joel_at_[hidden]
Date: 2009-03-19 21:21:42
Author: djowel
Date: 2009-03-19 21:21:42 EDT (Thu, 19 Mar 2009)
New Revision: 51862
URL: http://svn.boost.org/trac/boost/changeset/51862
Log:
fixed tuples::length not having a specialization for const tuple<> and const null_type
Text files modified:
trunk/boost/tuple/detail/tuple_basic.hpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
Modified: trunk/boost/tuple/detail/tuple_basic.hpp
==============================================================================
--- trunk/boost/tuple/detail/tuple_basic.hpp (original)
+++ trunk/boost/tuple/detail/tuple_basic.hpp 2009-03-19 21:21:42 EDT (Thu, 19 Mar 2009)
@@ -213,7 +213,7 @@
template<int N, class T>
-struct element:
+struct element:
public detail::element_impl<N, T, ::boost::is_const<T>::value>
{
};
@@ -489,10 +489,19 @@
};
template<>
+struct length<tuple<> const> {
+ BOOST_STATIC_CONSTANT(int, value = 0);
+};
+
+template<>
struct length<null_type> {
BOOST_STATIC_CONSTANT(int, value = 0);
};
+template<>
+struct length<null_type const> {
+ BOOST_STATIC_CONSTANT(int, value = 0);
+};
namespace detail {
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk