Skip to content

Commit

Permalink
GeneratorInterface/PartonShowerVeto: replace auto_ptr removed in stri…
Browse files Browse the repository at this point in the history
…ct std=c++17
  • Loading branch information
gartung committed Sep 27, 2018
1 parent 6cb583d commit c69fe24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -82,7 +82,7 @@ class JetMatching {
const std::vector<JetPartonMatch> &getMatchSummary() const
{ return matchSummary; }
*/
static std::auto_ptr<JetMatching> create(
static std::unique_ptr<JetMatching> create(
const edm::ParameterSet &params);

protected:
Expand Down
4 changes: 2 additions & 2 deletions GeneratorInterface/PartonShowerVeto/src/JetMatching.cc
Expand Up @@ -44,11 +44,11 @@ std::set<std::string> JetMatching::capabilities() const
return result;
}

std::auto_ptr<JetMatching> JetMatching::create(const edm::ParameterSet &params)
std::unique_ptr<JetMatching> JetMatching::create(const edm::ParameterSet &params)
{
std::string scheme = params.getParameter<std::string>("scheme");

std::auto_ptr<JetMatching> matching;
std::unique_ptr<JetMatching> matching;

if (scheme == "Madgraph")
{
Expand Down

0 comments on commit c69fe24

Please sign in to comment.