This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Remove unexpected handlers in C++17
ClosedPublic

Authored by EricWF on Dec 29 2016, 8:55 PM.

Details

Summary

This patch implements P0003R5 which removes exception specifications from C++17.

The only changes to the library are removing set_unexpected, get_unexpected, unexpected, and unexpected_handler. These functions can be re-enabled in C++17 using _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS.

@mclow.lists what do you think about removing stuff is this way?

Diff Detail

Event Timeline

EricWF updated this revision to Diff 82716.Dec 29 2016, 8:55 PM
EricWF retitled this revision from to [libcxx] Remove unexpected handlers in C++17.
EricWF updated this object.
EricWF added a reviewer: mclow.lists.
EricWF added subscribers: cfe-commits, mclow.lists.
mclow.lists accepted this revision.Feb 16 2017, 6:51 AM

LGTM. Sorry for the slow response.

This revision is now accepted and ready to land.Feb 16 2017, 6:51 AM
EricWF updated this revision to Diff 88843.Feb 16 2017, 7:35 PM
  • Update so that it merges with master.
  • add _LIBCPP_ENABLE_CXX17_REMOVED_FEATURES macro for re-enabling all removed C++17 features.
EricWF closed this revision.Feb 16 2017, 7:36 PM