Commit a13d0106 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Don't rely on STL implementation detail of nullopt

parent b70d2b2e
......@@ -29,16 +29,14 @@
namespace Akonadi {
template<typename T>
using akOptional = std::experimental::optional<T>;
using nullopt_t = std::experimental::nullopt_t;
constexpr nullopt_t nullopt{nullopt_t::init()};
constexpr auto nullopt = std::experimental::nullopt;
}
#else
#include <optional>
namespace Akonadi {
template<typename T>
using akOptional = std::optional<T>;
using nullopt_t = std::nullopt_t;
constexpr nullopt_t nullopt{nullopt_t::init()};
constexpr auto nullopt = std::nullopt;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment