Commit b7f0788e authored by Tiago Peixoto's avatar Tiago Peixoto

UrnSampler.sample(): use if constexpr

parent 52a48622
Pipeline #718 passed with stage
in 105 minutes and 26 seconds
......@@ -54,7 +54,7 @@ public:
{
uniform_int_distribution<size_t> sample(0, _urn.size() - 1);
size_t i = sample(rng);
if (replacement)
if constexpr (replacement)
{
return _urn[i];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment