From ef73fabd23aab578529d135ad06bc4c1518a98f0 Mon Sep 17 00:00:00 2001 From: Mitsuru Kariya Date: Tue, 10 Sep 2013 15:34:42 +0900 Subject: [PATCH] [array.std::tuple_size] Fix examples compilation error. Examples used Using Directive 'using namespace sprout' and a variable named 'size'. This caused a compilation error because 'size' was ambiguous. ('sprout::size' and variable 'size') So, the variable renamed to 'n'. --- source/libs/array/array/std-tuple_size.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/array/array/std-tuple_size.rst b/source/libs/array/array/std-tuple_size.rst index e40907bd..d1ab43c0 100644 --- a/source/libs/array/array/std-tuple_size.rst +++ b/source/libs/array/array/std-tuple_size.rst @@ -33,8 +33,8 @@ Examples using namespace sprout; using type = array; - SPROUT_STATIC_CONSTEXPR auto size = std::tuple_size::value; - static_assert(size == 10, "tuple size of array is 10."); + SPROUT_STATIC_CONSTEXPR auto n = std::tuple_size::value; + static_assert(n == 10, "tuple size of array is 10."); Header ========================================