mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libstdc++: Fix outdated comment in <stacktrace>
My r15-998-g2a83084ce55363 change replaced the use of nothrow operator new with a call to __get_temporary_buffer, so update the comment to match. libstdc++-v3/ChangeLog: * include/std/stacktrace (_Impl::_M_allocate): Fix outdated comment.
This commit is contained in:
committed by
Jonathan Wakely
parent
8371e7f240
commit
e8302282cd
@@ -559,7 +559,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
{
|
||||
if constexpr (is_same_v<allocator_type, allocator<value_type>>)
|
||||
{
|
||||
// For std::allocator we use nothrow-new directly so we
|
||||
// Use non-throwing __get_temporary_buffer, so that we
|
||||
// don't need to handle exceptions from __alloc.allocate(n).
|
||||
auto __p = __detail::__get_temporary_buffer<value_type>(__n);
|
||||
if (__p == nullptr) [[unlikely]]
|
||||
|
||||
Reference in New Issue
Block a user