From 7103004b228ed0f9f6b0836bb2f2bef20e95802f Mon Sep 17 00:00:00 2001 From: tmadlener Date: Tue, 12 Dec 2023 19:23:44 +0100 Subject: [PATCH] Guard GenericParameter friend-ness for RNTuple support --- include/podio/GenericParameters.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/podio/GenericParameters.h b/include/podio/GenericParameters.h index eeee3696f..8466de9cb 100644 --- a/include/podio/GenericParameters.h +++ b/include/podio/GenericParameters.h @@ -18,10 +18,12 @@ class write_device; using version_type = uint32_t; // from sio/definitions } // namespace sio +#if PODIO_ENABLE_RNTUPLE namespace podio { class ROOTNTupleReader; class ROOTNTupleWriter; } // namespace podio +#endif #define DEPR_NON_TEMPLATE \ [[deprecated("Non-templated access will be removed. Switch to templated access functionality")]] @@ -150,8 +152,11 @@ class GenericParameters { friend void writeGenericParameters(sio::write_device& device, const GenericParameters& parameters); friend void readGenericParameters(sio::read_device& device, GenericParameters& parameters, sio::version_type version); - friend ROOTNTupleReader; + +#if PODIO_ENABLE_RNTUPLE friend ROOTNTupleWriter; + friend ROOTNTupleReader; +#endif /// Get a reference to the internal map for a given type template