Skip to content

Commit

Permalink
Merge pull request #88 from phbasler/86-bug-when-calling-template-class
Browse files Browse the repository at this point in the history
Changed unique_ptr to make_unique
  • Loading branch information
phbasler authored Jul 6, 2022
2 parents 0d53fce + 7c2858a commit 97f2310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/IncludeAllModels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ std::unique_ptr<Class_Potential_Origin> FChoose(ModelIDs choice)
case ModelIDs::CPINTHEDARK:
return std::make_unique<Class_Potential_CPintheDark>();
break;
case ModelIDs::TEMPLATE: return std::unique_ptr<Class_Template>(); break;
case ModelIDs::TEMPLATE: return std::make_unique<Class_Template>(); break;
default: throw std::runtime_error("Invalid model");
}
}
Expand Down

1 comment on commit 97f2310

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.50.

Benchmark suite Current: 97f2310 Previous: 0d53fce Ratio
BM_EWPT/repeats:5_stddev 474792802.9925138 ns/iter 59061990.10677795 ns/iter 8.04

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.