Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/bitcoin/system/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ template<class... Overload> overload(Overload...) -> overload<Overload...>;
/// Declare on struct to define constructors that forward to an inner variant.
#define FORWARD_VARIANT_CONSTRUCT(type, inner) \
template <class Type, class... Args> \
constexpr type(std::in_place_type_t<Type >, Args&&... args) NOEXCEPT \
constexpr type(std::in_place_type_t<Type>, Args&&... args) NOEXCEPT \
: inner(std::in_place_type<Type>, std::forward<Args>(args)...) \
{ \
} \
Expand Down Expand Up @@ -245,7 +245,7 @@ constexpr type& assign(std::in_place_index_t<Index>, Args&&... args) NOEXCEPT \
#define FORWARD_ALTERNATIVE_VARIANT_ASSIGNMENT(type, Alternative, inner) \
type& operator=(Alternative&& alternative) NOEXCEPT \
{ \
inner.emplace(std::forward<Alternative>(alternative)); \
inner.emplace<Alternative>(std::forward<Alternative>(alternative)); \
return *this; \
}

Expand Down
Loading