Skip to content

Commit 98fbf27

Browse files
committed
Fix writing empty vector in variant field
The assignment was default-constructing an integer.
1 parent 6b326c8 commit 98fbf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/variant/write.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void write(std::string_view filename = "types.variant.root") {
4848
writer->Fill();
4949

5050
// Fifth entry: empty std::vector
51-
*value = {};
51+
*value = VectorInt32{};
5252
*vector = {};
5353
writer->Fill();
5454
}

0 commit comments

Comments
 (0)