Skip to content

Commit d24351f

Browse files
authored
Merge pull request #1760 from evoskuil/master
Update variant forwarding macros to accept template args.
2 parents 5917f47 + 15f8d9d commit d24351f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/bitcoin/system/chain/tapscript.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BC_API tapscript
3535

3636
DEFAULT_COPY_MOVE_DESTRUCT(tapscript);
3737

38-
inline static bool is_control(const data_chunk& control) NOEXCEPT;
38+
static inline bool is_control(const data_chunk& control) NOEXCEPT;
3939

4040
inline tapscript(chunk_cptr&& control) NOEXCEPT;
4141
inline tapscript(const chunk_cptr& control) NOEXCEPT;

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)