diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-03 15:56:17 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-03 15:56:17 +0000 |
commit | 6cf098ea7440c4acdd88f2ab472509f00e15255c (patch) | |
tree | 79c57ab4020cc17fd082ed0210d67c496862dec0 /libstdc++-v3 | |
parent | 18c03b465462212bc50bfaccf39c617bd7f394f5 (diff) | |
download | gcc-6cf098ea7440c4acdd88f2ab472509f00e15255c.tar.gz |
PR libstdc++/67078
* include/bits/range_access.h (size, empty, data): Fix _N bad name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226515 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/range_access.h | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5f87dddaa6f..f7b1c6bb40e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +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> * testsuite/experimental/filesystem/operations/current_path.cc: Use diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h index 2a1059885d7..586d162bc8c 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 <typename _Tp, size_t _N> + template <typename _Tp, size_t _Nm> 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 <typename _Tp, size_t _N> + template <typename _Tp, size_t _Nm> 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 <typename _Tp, size_t _N> + template <typename _Tp, size_t _Nm> constexpr _Tp* - data(_Tp (&__array)[_N]) noexcept + data(_Tp (&__array)[_Nm]) noexcept { return __array; } /** |