Skip to content

Commit b5dc6af

Browse files
committed
Explicit constructor is needed on some platforms
1 parent 8a24205 commit b5dc6af

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

root/tree/evolution/split/execCreateFileFullObjRule.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ class SomeVector
55
double dy = 2;
66
double dz = 3;
77
double h = 4;
8+
9+
SomeVector() = default;
10+
11+
SomeVector(double x, double y, double z, double inh) : dx(x), dy(y), dz(z), h(inh) {}
812
};
913

1014
class Middle {

root/tree/evolution/split/execReadFileFullObjRule.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ class SomeVector
33
public:
44
double data[3] = {-1, -1, -1};
55
double h;
6+
7+
SomeVector() = default;
8+
9+
SomeVector(double x, double y, double z, double inh) : h(inh) {
10+
data[0] = x;
11+
data[1] = y;
12+
data[2] = z;
13+
}
614
};
715

816
class Middle {

0 commit comments

Comments
 (0)