From 42a2190ba3a534d099ee3bbb4e44cdf5a976128a Mon Sep 17 00:00:00 2001 From: Valentin Volkl Date: Mon, 23 Nov 2020 16:41:36 +0100 Subject: [PATCH] bugfix: toString was removed in gaudi v35 --- k4FWCore/include/k4FWCore/DataHandle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k4FWCore/include/k4FWCore/DataHandle.h b/k4FWCore/include/k4FWCore/DataHandle.h index e58c1bd2..d4050d3a 100644 --- a/k4FWCore/include/k4FWCore/DataHandle.h +++ b/k4FWCore/include/k4FWCore/DataHandle.h @@ -143,12 +143,12 @@ const T* DataHandle::get() { DataObjectHandle>::setRead(); return reinterpret_cast(tmp->collectionBase()); } else { - std::string errorMsg("The type provided for " + DataObjectHandle>::toString() + + std::string errorMsg("The type provided for " + DataObjectHandle>::pythonRepr() + " is different from the one of the object in the store."); throw GaudiException(errorMsg, "wrong product type", StatusCode::FAILURE); } } - std::string msg("Could not retrieve product " + DataObjectHandle>::toString()); + std::string msg("Could not retrieve product " + DataObjectHandle>::pythonRepr()); throw GaudiException(msg, "wrong product name", StatusCode::FAILURE); }