'Which C++ version is supported for all iOS apps supported by Apple?
I want to use std::variant in iOS app but iOS-11 does not support std::variant. I get compilation error:
a.cpp:55:17: error: 'visit<(lambda at a.cpp:43:19) &, std::variant<foo, bar, baz> &>' is unavailable: introduced in iOS 11.0
return std::visit(...);
I still want to support iOS 11. I could have avoided writing code this way if there was a way to know which C++ version is supported for all the iOS apps. Are there ways to know which C++ version is supported for all iOS apps supported by Apple at any point in time?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
