Skip to content

Commit c2ab61a

Browse files
Add a default constructor to TaggedUnion; resolves #608 (#612)
1 parent 31920c7 commit c2ab61a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/rfl/TaggedUnion.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ struct TaggedUnion {
1717
/// The type of the underlying variant.
1818
using VariantType = rfl::Variant<Ts...>;
1919

20+
TaggedUnion() = default;
21+
2022
TaggedUnion(const VariantType& _variant) : variant_(_variant) {}
2123

2224
TaggedUnion(VariantType&& _variant) noexcept

0 commit comments

Comments
 (0)