Skip to content

Commit

Permalink
Make map public again, as it is needed for DD4hep
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed May 16, 2024
1 parent e48ba49 commit e216855
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/podio/GenericParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ class GenericParameters {
friend RNTupleWriter;
#endif

private:
/// Get a reference to the internal map for a given type
template <typename T>
MapType<detail::GetVectorType<T>>& getMap() {
const MapType<detail::GetVectorType<T>>& getMap() const {
if constexpr (std::is_same_v<detail::GetVectorType<T>, int>) {
return _intMap;
} else if constexpr (std::is_same_v<detail::GetVectorType<T>, float>) {
Expand All @@ -144,9 +143,10 @@ class GenericParameters {
}
}

private:
/// Get a reference to the internal map for a given type
template <typename T>
const MapType<detail::GetVectorType<T>>& getMap() const {
MapType<detail::GetVectorType<T>>& getMap() {
if constexpr (std::is_same_v<detail::GetVectorType<T>, int>) {
return _intMap;
} else if constexpr (std::is_same_v<detail::GetVectorType<T>, float>) {
Expand Down

0 comments on commit e216855

Please sign in to comment.