https://github.com/russbaz/swift-cpp-interop
An Example of Modern C++ and Swift Interop
https://github.com/russbaz/swift-cpp-interop
Last synced: 11 months ago
JSON representation
An Example of Modern C++ and Swift Interop
- Host: GitHub
- URL: https://github.com/russbaz/swift-cpp-interop
- Owner: RussBaz
- License: mit
- Created: 2025-07-08T17:32:49.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-09T06:50:10.000Z (11 months ago)
- Last Synced: 2025-07-09T07:46:09.927Z (11 months ago)
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift (6.1) and C++(20) interop example with SWIFT_SHARED_REFERENCE and std::shared_ptr
I am trying to use std::shared_ptr in the background, and yes, be careful. This is still a work in progress.
Just run `swift test` from the root of this repository to test on your machine.
NOTE: Swift might not rebuild the C++ headers if there are no changes in the Swift code, regardless of changes to the C++ side. I am not sure if this is intended or a bug, but I had an issue with this.