Skip to content

Commit 1d08d52

Browse files
committed
[TMVA] Explicitly define default constructors in some data structs
Explicitly define default constructor so cppyy doesn't attempt aggregate initialization.
1 parent 7cb3bed commit 1d08d52

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tmva/sofie/inc/TMVA/RModel_GNN.hxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class RFunction_Update;
1515
class RFunction_Aggregate;
1616

1717
struct GNN_Init {
18+
19+
// Explicitly define default constructor so cppyy doesn't attempt
20+
// aggregate initialization.
21+
GNN_Init() {}
22+
1823
// update blocks
1924
std::unique_ptr<RFunction_Update> edges_update_block;
2025
std::unique_ptr<RFunction_Update> nodes_update_block;

tmva/sofie/inc/TMVA/RModel_GraphIndependent.hxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ namespace SOFIE {
1414
class RFunction_Update;
1515

1616
struct GraphIndependent_Init {
17+
18+
// Explicitly define default constructor so cppyy doesn't attempt
19+
// aggregate initialization.
20+
GraphIndependent_Init() {}
21+
1722
// update blocks
1823
std::unique_ptr<RFunction_Update> edges_update_block;
1924
std::unique_ptr<RFunction_Update> nodes_update_block;

0 commit comments

Comments
 (0)