diff --git a/SimGeneral/MixingModule/interface/PileUpEventPrincipal.h b/SimGeneral/MixingModule/interface/PileUpEventPrincipal.h index 547aa96606695..94bb357f1ea7b 100644 --- a/SimGeneral/MixingModule/interface/PileUpEventPrincipal.h +++ b/SimGeneral/MixingModule/interface/PileUpEventPrincipal.h @@ -43,7 +43,7 @@ class PileUpEventPrincipal { bool getByLabel(edm::InputTag const& tag, edm::Handle& result) const { edm::BasicHandle bh = principal_.getByLabel(edm::PRODUCT_TYPE, edm::TypeID(typeid(T)), tag, nullptr, nullptr, mcc_); - convert_handle(std::move(bh), result); + result = edm::convert_handle(std::move(bh)); return result.isValid(); }