Commit b7f0788e authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

UrnSampler.sample(): use if constexpr

parent 52a48622
......@@ -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];
Supports Markdown
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