diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-02-16 11:32:00 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-02-16 11:41:51 +0000 |
commit | b81b017ed30b8c6abb2e58a3ed9eb67eccc1c181 (patch) | |
tree | 442dec941b2c3a94a2e3857ab54fdfaa0327993c | |
parent | 38a8a3341873d5068474ce2c73208eec9cd894d4 (diff) | |
download | gcc-b81b017ed30b8c6abb2e58a3ed9eb67eccc1c181.zip gcc-b81b017ed30b8c6abb2e58a3ed9eb67eccc1c181.tar.gz gcc-b81b017ed30b8c6abb2e58a3ed9eb67eccc1c181.tar.bz2 |
libstdc++: Fix non-reserved names in <ext/throw_allocator.h>
libstdc++-v3/ChangeLog:
* include/ext/throw_allocator.h: Use reserved names for
parameters.
-rw-r--r-- | libstdc++-v3/include/ext/throw_allocator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/ext/throw_allocator.h b/libstdc++-v3/include/ext/throw_allocator.h index 4c5565b..0dbf001 100644 --- a/libstdc++-v3/include/ext/throw_allocator.h +++ b/libstdc++-v3/include/ext/throw_allocator.h @@ -851,13 +851,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { return std::__addressof(__x); } _GLIBCXX_NODISCARD pointer - allocate(size_type __n, const void* hint = 0) + allocate(size_type __n, const void* __hint = 0) { if (__n > this->max_size()) std::__throw_bad_alloc(); throw_conditionally(); - pointer const a = traits::allocate(_M_allocator, __n, hint); + pointer const a = traits::allocate(_M_allocator, __n, __hint); insert(a, sizeof(value_type) * __n); return a; } @@ -880,8 +880,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } #else void - construct(pointer __p, const value_type& val) - { return _M_allocator.construct(__p, val); } + construct(pointer __p, const value_type& __val) + { return _M_allocator.construct(__p, __val); } void destroy(pointer __p) |