-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make source_location use string_view instead of const string&
Summary: `const std::string&` requires the caller to copy if all they have is `std::string_view`. Let's modernize the code here. Heterogenous lookups are not supported by `std::unordered_map` until C++20 so I've had to switch to `std::map`. This shouldn't be a problem in practice. Change is no-op. Reviewed By: iahs Differential Revision: D69197835 fbshipit-source-id: 83b0849a5bada97f9c41b13845a5567aeb2f2694
- Loading branch information
1 parent
75743cb
commit c123e30
Showing
2 changed files
with
30 additions
and
30 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