Commit 93411db8 by Jonathan Wakely Committed by Jonathan Wakely

re PR libstdc++/67078 (FAIL: 24_iterators/container_access.cc (test for excess…

re PR libstdc++/67078 (FAIL: 24_iterators/container_access.cc (test for excess errors) on aarch64-none-elf)

	PR libstdc++/67078
	* include/bits/range_access.h (size, empty, data): Fix _N bad name.

From-SVN: r226515
parent 0027ed3d
2015-08-03 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/67078
* include/bits/range_access.h (size, empty, data): Fix _N bad name.
2015-07-30 Jonathan Wakely <jwakely@redhat.com> 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
* testsuite/experimental/filesystem/operations/current_path.cc: Use * testsuite/experimental/filesystem/operations/current_path.cc: Use
......
...@@ -237,10 +237,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -237,10 +237,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @brief Return the size of an array. * @brief Return the size of an array.
* @param __array Array. * @param __array Array.
*/ */
template <typename _Tp, size_t _N> template <typename _Tp, size_t _Nm>
constexpr size_t constexpr size_t
size(const _Tp (&/*__array*/)[_N]) noexcept size(const _Tp (&/*__array*/)[_Nm]) noexcept
{ return _N; } { return _Nm; }
/** /**
* @brief Return whether a container is empty. * @brief Return whether a container is empty.
...@@ -255,9 +255,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -255,9 +255,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @brief Return whether an array is empty (always false). * @brief Return whether an array is empty (always false).
* @param __array Container. * @param __array Container.
*/ */
template <typename _Tp, size_t _N> template <typename _Tp, size_t _Nm>
constexpr bool constexpr bool
empty(const _Tp (&/*__array*/)[_N]) noexcept empty(const _Tp (&/*__array*/)[_Nm]) noexcept
{ return false; } { return false; }
/** /**
...@@ -291,9 +291,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -291,9 +291,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @brief Return the data pointer of an array. * @brief Return the data pointer of an array.
* @param __array Array. * @param __array Array.
*/ */
template <typename _Tp, size_t _N> template <typename _Tp, size_t _Nm>
constexpr _Tp* constexpr _Tp*
data(_Tp (&__array)[_N]) noexcept data(_Tp (&__array)[_Nm]) noexcept
{ return __array; } { return __array; }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment