-
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.
* If `!__cpp_aggregate_bases`, avoid a lambda in an initializer of a static constexpr variable. Call a private static constexpr function instead. * If `!__cpp_aggregate_bases`, do not construct a struct from a base struct. Assign to the base class with a cast. * In `Initializer` base classes, make `kMethodsDefault` a template with a dummy parameter, so that it is instantiated only when needed, which prevents breaking the build if the target type is not default-constructible. PiperOrigin-RevId: 630410305
- Loading branch information
Showing
2 changed files
with
98 additions
and
47 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