mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-25 00:43:44 +00:00
[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'.
This commit is contained in:
parent
24f70fb1fd
commit
ef73fabd23
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ Examples
|
||||||
using namespace sprout;
|
using namespace sprout;
|
||||||
|
|
||||||
using type = array<int, 10>;
|
using type = array<int, 10>;
|
||||||
SPROUT_STATIC_CONSTEXPR auto size = std::tuple_size<type>::value;
|
SPROUT_STATIC_CONSTEXPR auto n = std::tuple_size<type>::value;
|
||||||
static_assert(size == 10, "tuple size of array is 10.");
|
static_assert(n == 10, "tuple size of array is 10.");
|
||||||
|
|
||||||
Header
|
Header
|
||||||
========================================
|
========================================
|
||||||
|
|
Loading…
Reference in a new issue