Closed wdconinc closed 4 months ago
Due to https://github.com/AIDASoft/podio/pull/564 we get compilation errors:
>> 322 /home/wdconinc/git/JANA2/src/examples/PodioExample/PodioExample.cc:46:51: error: call of overloaded 'ExampleHit(<brace-enclosed initializer list>)' is ambiguous 323 46 | hits2.push_back(ExampleHit({42, 5, -5, 5, 7.6})); 324 | ^ 325 In file included from /home/wdconinc/git/JANA2/src/examples/PodioExample/datamodel/MutableExampleHit.h:8, 326 from /home/wdconinc/git/JANA2/src/examples/PodioExample/PodioExample.cc:7: 327 /home/wdconinc/git/JANA2/src/examples/PodioExample/./datamodel/ExampleHit.h:59:3: note: candidate: 'ExampleHit::ExampleHit(const MutableExampleHit&)' 328 59 | ExampleHit(const MutableExampleHit& other); 329 | ^~~~~~~~~~ 330 /home/wdconinc/git/JANA2/src/examples/PodioExample/./datamodel/ExampleHit.h:47:3: note: candidate: 'ExampleHit::ExampleHit(const ExampleHit&)' 331 47 | ExampleHit(const ExampleHit& other) = default; 332 | ^~~~~~~~~~
This PR removes the ambiguity that is present by passing an initializer list to a constructor.
After this commit, JANA2 compiles both before and after podio PR 564 (and also with v00-17-03 which is before https://github.com/AIDASoft/podio/pull/514 which led to https://github.com/JeffersonLab/JANA2/pull/269). There is no minimum podio version specified in CMakeLists.txt to test with.
Due to https://github.com/AIDASoft/podio/pull/564 we get compilation errors:
This PR removes the ambiguity that is present by passing an initializer list to a constructor.
After this commit, JANA2 compiles both before and after podio PR 564 (and also with v00-17-03 which is before https://github.com/AIDASoft/podio/pull/514 which led to https://github.com/JeffersonLab/JANA2/pull/269). There is no minimum podio version specified in CMakeLists.txt to test with.