-
-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICU-22520 Use operator* instead of calling std::optional::value().
There's a subtle difference between these two ways of accessing the value of an optional and that is that the value() method can throw an exception if there isn't any value, but operator* won't do that (it's just undefined behavior if there isn't any value). ICU4C code never tries to access any optional value without first checking that it exists, but the ability of the value() method to throw an exception in case there wasn't any such check first is the reason why std::exception symbols previously could show up in debug builds. This reverts the changes that were made to dependencies.txt by commit dc70b5a.
- Loading branch information
Showing
3 changed files
with
15 additions
and
21 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