Skip to content

Commit 941f519

Browse files
committed
[ntpl] Help ROOT I/O of class in streamer field test
Attempt at fixing failures such as seen on MacOS beta: ``` Error in <CloseStreamerInfoROOTFile>: Unique pointer unique_ptr<PolyBase,default_delete<PolyBase> > has zero data members. ```
1 parent f19a7c2 commit 941f519

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tree/ntuple/test/StreamerField.hxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,26 @@ class IgnoreUnsplitComment {
6767
// Test streamer field with polymorphic type
6868

6969
struct PolyBase {
70-
virtual ~PolyBase() {}
70+
virtual ~PolyBase() = default;
7171
int x;
72+
ClassDef(PolyBase, 3);
7273
};
7374

7475
struct PolyA : public PolyBase {
76+
~PolyA() override = default;
7577
int a;
78+
ClassDefOverride(PolyA, 3);
7679
};
7780

7881
struct PolyB : public PolyBase {
82+
~PolyB() override = default;
7983
int b;
84+
ClassDefOverride(PolyB, 3);
8085
};
8186

8287
struct PolyContainer {
8388
std::unique_ptr<PolyBase> fPoly;
89+
ClassDefNV(PolyContainer, 3);
8490
};
8591

8692
template <typename T>

0 commit comments

Comments
 (0)