diff --git a/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc b/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc index e6c8e6511e3e7..25b34db61050c 100644 --- a/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc +++ b/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc @@ -551,10 +551,10 @@ std::unique_ptr ExternalLHEProducer::generateRunInfo(std::vec std::for_each(runInfo->getHeaders().begin(), runInfo->getHeaders().end(), - std::bind(&LHERunInfoProduct::addHeader, product, std::placeholders::_1)); + std::bind(&LHERunInfoProduct::addHeader, &product, std::placeholders::_1)); std::for_each(runInfo->getComments().begin(), runInfo->getComments().end(), - std::bind(&LHERunInfoProduct::addComment, product, std::placeholders::_1)); + std::bind(&LHERunInfoProduct::addComment, &product, std::placeholders::_1)); if (not retValue) { retValue = std::make_unique(std::move(product)); } else {