1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef boost #if __cplusplus < 201703L #include <boost/optional.hpp> using boost::optional; #else #include <optional> using std::optional; #endif #endif