mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 18:30:30 +00:00
Map structs and tuples to initializer lists in C++ overload resolution. (#6620)
When performing C++ overload resolution with an argument that is of
Carbon struct or tuple type, form a braced initializer list as the
placeholder argument. Note that this only affects overload resolution;
no new support for actually converting structs or tuples to C++ types is
added. In particular, while this does allow an empty class to be
initialized from `{}`, it does not allow a non-empty C++ class to be
initialized from a struct, as that is not yet supported in general.
---------
Co-authored-by: Carbon Infra Bot <carbon-external-infra@google.com>
Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
5 files changed
+1764
-45
No files matched your search
+1428
-20
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user