-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ABSL_HARDENING_ASSERTs in constexpr methods to their own lines.
Prior to this change, some ABSL_HARDENING_ASSERTs were sequenced with the main work of some constexpr methods using the comma operator in order to satisfy C++11's constexpr requirements. However, putting the assertion and the main work of the function on the same line complicates measuring the performance impact of the assertions. As C++11 is no longer supported, this change moves the assertions to their own lines in order to make measuring their performance impact easier. PiperOrigin-RevId: 707614464 Change-Id: Idb621bb183b80db17e2db44c3ffc671b76bba92b
- Loading branch information
1 parent
d6a75d9
commit f0e5905
Showing
3 changed files
with
22 additions
and
12 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