Skip to content

Commit df3ba91

Browse files
authored
[libc++] Clarify the release note for uncaught_exception removal and deprecation (#123118)
The release note did not clearly mention that std::uncaught_exception had been removed in C++20.
1 parent 9e863cd commit df3ba91

File tree

1 file changed

+6
-5
lines changed
  • libcxx/docs/ReleaseNotes

1 file changed

+6
-5
lines changed

libcxx/docs/ReleaseNotes/20.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ Improvements and New Features
5555
- The ``_LIBCPP_ENABLE_CXX20_REMOVED_TEMPORARY_BUFFER`` macro has been added to make ``std::get_temporary_buffer`` and
5656
``std::return_temporary_buffer`` available.
5757

58-
- The ``_LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION`` macro has been added to make ``std::uncaught_exception``
58+
- The ``std::uncaught_exception`` function was marked as deprecated since C++17 and removed since C++20. The
59+
``_LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION`` macro has been added to make ``std::uncaught_exception``
5960
available in C++20 and later modes.
6061

6162
- The internal structure ``__compressed_pair`` has been replaced with ``[[no_unique_address]]``, resulting in reduced
@@ -69,12 +70,12 @@ Improvements and New Features
6970
- The ``_LIBCPP_ABI_BOUNDED_ITERATORS_IN_STD_ARRAY`` ABI configuration was added, which allows storing valid bounds
7071
in ``std::array::iterator`` and detecting OOB accesses when the appropriate hardening mode is enabled.
7172

72-
- The ``input_iterator``-pair overload of ``void assign(InputIt, InputIt)`` has been optimized for ``std::vector``,
73-
resulting in a performance improvement of up to 2x for trivial element types (e.g., ``std::vector<int>``), and up
73+
- The ``input_iterator``-pair overload of ``void assign(InputIt, InputIt)`` has been optimized for ``std::vector``,
74+
resulting in a performance improvement of up to 2x for trivial element types (e.g., ``std::vector<int>``), and up
7475
to 3.4x for non-trivial element types (e.g., ``std::vector<std::vector<int>>``).
7576

76-
- The ``input_iterator``-pair overload of ``iterator insert(const_iterator, InputIt, InputIt)`` has been optimized
77-
for ``std::vector``, resulting in a performance improvement of up to 10x for ``std::vector<int>``, and up to 2.3x
77+
- The ``input_iterator``-pair overload of ``iterator insert(const_iterator, InputIt, InputIt)`` has been optimized
78+
for ``std::vector``, resulting in a performance improvement of up to 10x for ``std::vector<int>``, and up to 2.3x
7879
for ``std::vector<std::vector<int>>``.
7980

8081
- On Windows, ``<system_error>``'s ``std::system_category`` is now distinct from ``std::generic_category``. The behavior

0 commit comments

Comments
 (0)