Skip to content

Conversation

@egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Jun 5, 2024

This improves support for initializing instances of std::optional from Swift. Previously only a null optional could be initialized directly from Swift. Now instantiations of std::optional will get a Swift initializer that takes the wrapped value as a parameter.

rdar://118026392

@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jun 5, 2024
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch 2 times, most recently from fcea468 to c3b9880 Compare June 6, 2024 15:30
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch 2 times, most recently from bfb54e8 to a2d7632 Compare June 24, 2024 15:16
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

1 similar comment
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch from a2d7632 to cd4f299 Compare June 28, 2024 18:33
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch from cd4f299 to 7404b98 Compare July 3, 2024 17:52
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test Linux

4 similar comments
@egorzhdan
Copy link
Contributor Author

@swift-ci please test Linux

@egorzhdan
Copy link
Contributor Author

@swift-ci please test Linux

@egorzhdan
Copy link
Contributor Author

@swift-ci please test Linux

@egorzhdan
Copy link
Contributor Author

@swift-ci please test Linux

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch from 7404b98 to c41a436 Compare March 28, 2025 13:08
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch 2 times, most recently from f70db4c to 50eb7c0 Compare April 1, 2025 14:51
@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch from 50eb7c0 to 8cf8a16 Compare June 26, 2025 18:20
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch 2 times, most recently from 18ba265 to 2bf0bd3 Compare June 30, 2025 11:14
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan
Copy link
Contributor Author

@swift-ci please build toolchain Ubuntu 22.04

@egorzhdan
Copy link
Contributor Author

The test failure on Ubuntu CI is not reproducible for me with Ubuntu 22.04 (slightly newer than the CI uses) and libstdc++-9 (same version as on CI).

@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch from 2bf0bd3 to ca3b7ab Compare July 3, 2025 12:56
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

This improves support for initializing instances of `std::optional` from Swift. Previously only a null optional could be initialized directly from Swift. Now instantiations of `std::optional` will get a Swift initializer that takes the wrapped value as a parameter.

rdar://118026392
@egorzhdan egorzhdan force-pushed the egorzhdan/std-optional-init-value branch from ca3b7ab to dcc3842 Compare July 3, 2025 13:01
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test Windows

1 similar comment
@egorzhdan
Copy link
Contributor Author

@swift-ci please test Windows

@egorzhdan egorzhdan merged commit c06951e into main Jul 4, 2025
5 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/std-optional-init-value branch July 4, 2025 15:33
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.

3 participants