Skip to content

[cxx-interop] Do not import default arguments of constructors that require template instantiation#88589

Draft
egorzhdan wants to merge 1 commit intoswiftlang:mainfrom
egorzhdan:egorzhdan/std-set-ctor
Draft

[cxx-interop] Do not import default arguments of constructors that require template instantiation#88589
egorzhdan wants to merge 1 commit intoswiftlang:mainfrom
egorzhdan:egorzhdan/std-set-ctor

Conversation

@egorzhdan
Copy link
Copy Markdown
Contributor

After a2b7b8f, Swift began emitting template instantiation errors for the default expression of std::set constructor that takes a comparator. The default expression calls the default constructor of the comparator type, which might be deleted.

This change backs out default arguments of constructors that require instantiation out of the feature.

rdar://175267666

  • Explanation:
  • Scope:
  • Issues:
  • Risk:
  • Testing:

…quire template instantiation

After a2b7b8f, Swift began emitting template instantiation errors for the default expression of `std::set` constructor that takes a comparator. The default expression calls the default constructor of the comparator type, which might be deleted.

This change backs out default arguments of constructors that require instantiation out of the feature.

rdar://175267666
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Apr 21, 2026
@egorzhdan
Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant