Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#ifndef OPTIONAL
#define OPTIONAL
#if __has_include(<optional>)
# include <optional>
#else
# include <experimental/optional>
namespace std {
template<typename T>
using optional = std::experimental::optional<T>;
}
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment