-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
let futures exception types override what()
Summary: Rather than increasing state size with `static_what_exception` and rather than inserting it into the exception base-class list, where it forms a new unintended interface, let the exception types simply override member `what` directly. Continue to avoid constructing `std::logic_error` with the message in order to avoid the allocations and copies. In libstdc++ with libsupc++, in accordance with pre-c++11-abi `std::string`, empty exception strings in `std::logic_error` elide the heap allocation. Reviewed By: ot Differential Revision: D58326623 fbshipit-source-id: 27c88975eed00fdd4d79e9a4955d930d37b3fda4
- Loading branch information
1 parent
7cd8d52
commit 9c44b54
Showing
4 changed files
with
47 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters