Replace boost::optional with std::optional

This commit is contained in:
MarcoFalke 2020-06-05 23:02:44 +02:00
parent fa7e803f3e
commit fa4435e22f
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
7 changed files with 12 additions and 12 deletions

View file

@ -5,15 +5,16 @@
#ifndef BITCOIN_OPTIONAL_H
#define BITCOIN_OPTIONAL_H
#include <optional>
#include <utility>
#include <boost/optional.hpp>
//! Substitute for C++17 std::optional
//! DEPRECATED use std::optional in new code.
template <typename T>
using Optional = boost::optional<T>;
using Optional = std::optional<T>;
//! Substitute for C++17 std::nullopt
static auto& nullopt = boost::none;
//! DEPRECATED use std::nullopt in new code.
static auto& nullopt = std::nullopt;
#endif // BITCOIN_OPTIONAL_H