aboutsummaryrefslogtreecommitdiff
path: root/src/optional.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/optional.h')
-rw-r--r--src/optional.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/optional.h b/src/optional.h
index 252d56fd58..40c6b6cc31 100644
--- a/src/optional.h
+++ b/src/optional.h
@@ -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