File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232#include < stdexcept> // purged
3333#include < string> // purged
3434#include < type_traits> // purged
35+ #include < variant> // purged
3536#include < vector> // purged
3637
3738// Pulls in all /system headers (except settings.hpp).
Original file line number Diff line number Diff line change 2121
2222#include < tuple>
2323#include < utility>
24- #include < variant>
2524#include < bitcoin/system/data/data.hpp>
2625#include < bitcoin/system/define.hpp>
2726#include < bitcoin/system/math/math.hpp>
Original file line number Diff line number Diff line change 2020#define LIBBITCOIN_SYSTEM_MACHINE_STACK_HPP
2121
2222#include < list>
23- #include < variant>
2423#include < bitcoin/system/data/data.hpp>
2524#include < bitcoin/system/define.hpp>
2625#include < bitcoin/system/machine/number_boolean.hpp>
@@ -110,14 +109,6 @@ class stack
110109 mutable tether<data_chunk> tether_;
111110};
112111
113- // For use with std::visit.
114- template <class ... Overload>
115- struct overload : Overload... { using Overload::operator ()...; };
116-
117- // clang++16 still requires.
118- // Explicit deduction guide, should not be required in C++20 (namespace scope).
119- template <class ... Overload> overload (Overload...) -> overload<Overload...>;
120-
121112} // namespace machine
122113} // namespace system
123114} // namespace libbitcoin
Original file line number Diff line number Diff line change 2020#define LIBBITCOIN_SYSTEM_TYPES_HPP
2121
2222#include < tuple>
23+ #include < variant>
2324#include < bitcoin/system/allocator.hpp>
2425
2526namespace libbitcoin {
@@ -201,6 +202,16 @@ struct text_t
201202BC_POP_WARNING ()
202203BC_POP_WARNING()
203204
205+ // / Overload pattern.
206+ // / ---------------------------------------------------------------------------
207+ // / For use with std::visit.
208+ template<class... Overload>
209+ struct overload : Overload... { using Overload::operator ()...; };
210+
211+ // / clang++16 still requires.
212+ // / Explicit deduction guide, should not be required in C++20 (namespace scope).
213+ template <class ... Overload> overload (Overload...) -> overload<Overload...>;
214+
204215// / Argument placeholders.
205216// / ---------------------------------------------------------------------------
206217
You can’t perform that action at this time.
0 commit comments