https://github.com/thelartians/ios_std_alternatives
C++17 alternative std libraries for iOS 9.0+
https://github.com/thelartians/ios_std_alternatives
Last synced: 3 days ago
JSON representation
C++17 alternative std libraries for iOS 9.0+
- Host: GitHub
- URL: https://github.com/thelartians/ios_std_alternatives
- Owner: TheLartians
- Created: 2019-09-21T09:36:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T14:13:33.000Z (almost 6 years ago)
- Last Synced: 2024-10-06T09:42:30.000Z (about 1 year ago)
- Language: CMake
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/TheLartians/ios_std_alternatives/actions)
[](https://github.com/TheLartians/ios_std_alternatives/actions)
[](https://github.com/TheLartians/ios_std_alternatives/actions)# ios_std_alternatives
C++17 is awesome, however some features, such as `std::get` are [only available for recent iOS versions](https://stackoverflow.com/questions/52310835/xcode-10-call-to-unavailable-function-stdvisit/53868971).
This project adds alternative implementations to broken iOS types.## Run tests
```bash
cmake -H. -Bbuild -Dios_std_alternatives_ENABLE_TESTS=On
cmake --build build -j8
./build/tests/ios_std_alternatives_test
```## Compile tests for iOS 9.0
```bash
cmake -E env CXXFLAGS="-fno-aligned-allocation" cmake -H. -Bbuild-ios -G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=9.0 -DCMAKE_INSTALL_PREFIX=./build-ios/root -DCMAKE_IOS_INSTALL_COMBINED=YES -Dios_std_alternatives_ENABLE_TESTS=On
cmake --build build-ios --target install -j8
```