commit ae65b96cfb69c64d636f86d9f9154da2364e0440 Author: Jonathan Wakely Date: Mon Aug 3 16:29:44 2015 +0100 PR libstdc++/67078 * include/bits/range_access.h (size, empty, data): Fix _N bad name. diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h index 2a10598..586d162 100644 --- a/libstdc++-v3/include/bits/range_access.h +++ b/libstdc++-v3/include/bits/range_access.h @@ -237,10 +237,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @brief Return the size of an array. * @param __array Array. */ - template + template constexpr size_t - size(const _Tp (&/*__array*/)[_N]) noexcept - { return _N; } + size(const _Tp (&/*__array*/)[_Nm]) noexcept + { return _Nm; } /** * @brief Return whether a container is empty. @@ -255,9 +255,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @brief Return whether an array is empty (always false). * @param __array Container. */ - template + template constexpr bool - empty(const _Tp (&/*__array*/)[_N]) noexcept + empty(const _Tp (&/*__array*/)[_Nm]) noexcept { return false; } /** @@ -291,9 +291,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @brief Return the data pointer of an array. * @param __array Array. */ - template + template constexpr _Tp* - data(_Tp (&__array)[_N]) noexcept + data(_Tp (&__array)[_Nm]) noexcept { return __array; } /**