diff --git a/doc/tuple_advanced_interface.html b/doc/tuple_advanced_interface.html
index 1b9df5a..a8cfc5c 100644
--- a/doc/tuple_advanced_interface.html
+++ b/doc/tuple_advanced_interface.html
@@ -20,7 +20,9 @@ Suppose T
is a tuple type, and N
is a constant integra
-gives the type of the element<N, T>::type
N
th element in the tuple type T
.
+gives the type of the N
th element in the tuple type T
. If T
is const, the resulting type is const qualified as well.
+Note that the constness of T
does not affect reference type
+elements.
length<T>::value
diff --git a/include/boost/tuple/detail/tuple_basic.hpp b/include/boost/tuple/detail/tuple_basic.hpp
index acc25b9..22478c6 100644
--- a/include/boost/tuple/detail/tuple_basic.hpp
+++ b/include/boost/tuple/detail/tuple_basic.hpp
@@ -153,6 +153,21 @@ struct element<0,T>
typedef typename T::head_type type;
};
+template