[libcxx-commits] [PATCH] D110846: [libcxx] Make allocator<T>:allocate throw bad_array_new_length

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 11 11:30:57 PDT 2021


Quuxplusone accepted this revision as: Quuxplusone.
Quuxplusone added a comment.

This LGTM; @ldionne ping?
Also, @miyuki, please re-upload the diff so that we get a clean buildkite run. Let's make sure this passes CI.



================
Comment at: libcxx/docs/ReleaseNotes.rst:54-55
+  ``std::experimental::pmr::polymorphic_allocator<T>::allocate`` now throw
+  an exception of the type ``std::bad_array_new_length`` when the requested size
+  exceeds the maximum supported size as required by the C++ standard. Previously
+  the type ``std::length_error`` was used.
----------------



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110846/new/

https://reviews.llvm.org/D110846



More information about the libcxx-commits mailing list