-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterize
ExternalRef::StorageWhole
by TargetRefT<Arg>
instead…
… of by `Arg&&`. The implementation of `StorageWhole` depends only on the target type, not on its initializer, because the object needs to be constructed unconditionaly for conversion to `absl::string_view`; the `StorageWhole` keeps the constructed object rather than its initializer. While this is inconsistent with `ExternalRef::StorageSubstr`, this allows to skip the details of `MakerTypeFor` and pass only the target type if the `StorageWhole` is passed explicitly — which is very rare, hence regular code is unaffected. PiperOrigin-RevId: 715287089
- Loading branch information
Showing
1 changed file
with
28 additions
and
22 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