I am using C++ in Xcode version 8.1. I need to use the functionality of boost::any
but am strongly opposed to pulling any part of Boost into our project (let's not debate it please).
I see that std::any
is "merged into C++17" here.
I want to use this in my Xcode 8.1 project. I have tried using -std=c++1z
as a custom flag on the project, but I can't seem to find a header for it.
How can I use std::any
or std::experimental::any
in my Xcode project?
Can I download the appropriate headers from an implementation and throw them into my project's sourcecode? Or, even better, is actually available to now in my version of Xcode/Clang/C++?