mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 18:44:59 +01:00
The only use was to work around a compiler warning in an ancient compiler, which we no longer support.
19 lines
504 B
C++
19 lines
504 B
C++
// Copyright (c) 2017-2019 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_OPTIONAL_H
|
|
#define BITCOIN_OPTIONAL_H
|
|
|
|
#include <utility>
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
//! Substitute for C++17 std::optional
|
|
template <typename T>
|
|
using Optional = boost::optional<T>;
|
|
|
|
//! Substitute for C++17 std::nullopt
|
|
static auto& nullopt = boost::none;
|
|
|
|
#endif // BITCOIN_OPTIONAL_H
|