Hi,
We have a codebase that’s built with C++14 and was using <experimental/optional> to use std::optional. This no longer works with libc++ 7 onwards, since <experimental/optional> was removed per the TS deprecation policy.
We can’t use because that’s limited to C++17 and above. We’re working on upgrading our codebase, but it’ll take time I’m wondering if there’s any solution available that’ll work pre-C++17. Our current plan was to overlay our own <experimental/optional> that’s a copy of the one from libc++ 6, but some sort of solution in the library itself would be ideal.
I recall there being some past discussion about this, but I can’t find it right now. Looking forward to any suggestions here.
Thanks,
Shoaib