Skip to content

Commit 15f8d9d

Browse files
committed
Update variant forwarding macros to accept template args.
1 parent ac2c46e commit 15f8d9d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/bitcoin/system/types.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,21 +278,21 @@ constexpr type(std::in_place_index_t<Index>, Args&&... args) NOEXCEPT \
278278
template <class Type, class... Args> \
279279
constexpr type& assign(std::in_place_type_t<Type>, Args&&... args) NOEXCEPT \
280280
{ \
281-
inner.emplace<Type>(std::forward<Args>(args)...); \
281+
inner.template emplace<Type>(std::forward<Args>(args)...); \
282282
return *this; \
283283
} \
284284
template <size_t Index, class... Args> \
285285
constexpr type& assign(std::in_place_index_t<Index>, Args&&... args) NOEXCEPT \
286286
{ \
287-
inner.emplace<Index>(std::forward<Args>(args)...); \
287+
inner.template emplace<Index>(std::forward<Args>(args)...); \
288288
return *this; \
289289
}
290290

291291
/// Generate operator= overloads forwarding assignment for a specific alt type.
292292
#define FORWARD_ALTERNATIVE_VARIANT_ASSIGNMENT(type, Alternative, inner) \
293293
constexpr type& operator=(Alternative&& alternative) NOEXCEPT \
294294
{ \
295-
inner.emplace<Alternative>(std::forward<Alternative>(alternative)); \
295+
inner.template emplace<Alternative>(std::forward<Alternative>(alternative)); \
296296
return *this; \
297297
}
298298

0 commit comments

Comments
 (0)