Skip to content

Commit 2776f73

Browse files
authored
DPL: workaround cling issue with std::variant (#4848)
1 parent c34a467 commit 2776f73

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Framework/Core/include/Framework/InputSpec.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
#include <string>
1919
#include <ostream>
20+
#if !defined(__CLING__) && !defined(__ROOTCLING__)
2021
#include <variant>
22+
#endif
2123

2224
namespace o2::framework
2325
{
@@ -57,7 +59,9 @@ struct InputSpec {
5759
std::string binding;
5860

5961
/// The actual matcher for the input spec.
62+
#if !defined(__CLING__) && !defined(__ROOTCLING__)
6063
std::variant<ConcreteDataMatcher, data_matcher::DataDescriptorMatcher> matcher;
64+
#endif
6165

6266
enum Lifetime lifetime;
6367

Framework/Core/include/Framework/OutputSpec.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
#include "Framework/Lifetime.h"
1515
#include "Framework/ConcreteDataMatcher.h"
1616

17+
#if !defined(__CLING__) && !defined(__ROOTCLING__)
1718
#include <variant>
19+
#endif
1820

1921
namespace o2::framework
2022
{
@@ -28,7 +30,9 @@ struct OutputLabel {
2830
/// topology.
2931
struct OutputSpec {
3032
OutputLabel binding;
33+
#if !defined(__CLING__) && !defined(__ROOTCLING__)
3134
std::variant<ConcreteDataMatcher, ConcreteDataTypeMatcher> matcher;
35+
#endif
3236
enum Lifetime lifetime = Lifetime::Timeframe;
3337

3438
/// Build a fully qualified tuple for the OutputSpec

0 commit comments

Comments
 (0)