-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hold interned strings by reference, not by ID
Rather than having a `StringStorage` class which exposes a custom identifier used as a token for resolving an interned string, expose an `InternedString` type directly constructible from a `std::string`. This type handles the interning automatically, and using this type in signatures allows us to encode whether a particular function needs to be called with an interned string or could be called with any string. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
- Loading branch information
Showing
2 changed files
with
73 additions
and
104 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