As explained in the PR, there's no reason to call the nothrow delete,
we can just use the normal one.
PR libstdc++/86954
* include/bits/stl_tempbuf.h (return_temporary_buffer): Use
non-placement delete.
From-SVN: r263542
2018-08-14 Jonathan Wakely <jwakely@redhat.com>
+ PR libstdc++/86954
+ * include/bits/stl_tempbuf.h (return_temporary_buffer): Use
+ non-placement delete.
+
* include/std/chrono (__check_overflow): Simplify definition.
(_Checked_integral_constant): Remove.
__gnu_cxx::__numeric_traits<ptrdiff_t>::__max / sizeof(_Tp);
if (__len > __max)
__len = __max;
-
- while (__len > 0)
+
+ while (__len > 0)
{
- _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp),
+ _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp),
std::nothrow));
if (__tmp != 0)
return std::pair<_Tp*, ptrdiff_t>(__tmp, __len);
template<typename _Tp>
inline void
return_temporary_buffer(_Tp* __p)
- { ::operator delete(__p, std::nothrow); }
+ { ::operator delete(__p); }
/**