-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SimulationTarget: don't allocate global std::string objects.
... they have a non-trivial constructor. Use std::string_view instead as they are wrapping constant strings from the .rodata segment anyway. That also allows to make them constexpr. Also use designated initializers for readability. PiperOrigin-RevId: 676651162
- Loading branch information
1 parent
d621d95
commit b118c15
Showing
2 changed files
with
6 additions
and
8 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