Skip to content

Commit

Permalink
Guard GenericParameter friend-ness for RNTuple support
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 12, 2023
1 parent b7d122d commit 7103004
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/podio/GenericParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")]]
Expand Down Expand Up @@ -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 <typename T>
Expand Down

0 comments on commit 7103004

Please sign in to comment.