diff --git a/FWCore/Framework/interface/GenericProduct.h b/FWCore/Framework/interface/GenericProduct.h index c461c77675c..77eb021dd6a 100644 --- a/FWCore/Framework/interface/GenericProduct.h +++ b/FWCore/Framework/interface/GenericProduct.h @@ -25,7 +25,7 @@ namespace edm { // specialise Event::putImpl for GenericProduct template <> - OrphanHandle Event::putImpl(EDPutToken::value_type index, std::unique_ptr product) { + inline OrphanHandle Event::putImpl(EDPutToken::value_type index, std::unique_ptr product) { /* TODO implement for ObjectWithDict // The following will call post_insert if T has such a function, // and do nothing if T has no such function. @@ -54,7 +54,7 @@ namespace edm { // specialise Event::put for GenericProduct template <> - OrphanHandle Event::put(EDPutToken token, std::unique_ptr product) { + inline OrphanHandle Event::put(EDPutToken token, std::unique_ptr product) { if (UNLIKELY(product.get() == nullptr)) { // null pointer is illegal TypeID typeID(typeid(GenericProduct)); principal_get_adapter_detail::throwOnPutOfNullProduct("Event", typeID, provRecorder_.productInstanceLabel(token));