Commit 5ee2888f authored by Philip Trettner's avatar Philip Trettner
Browse files

Merge branch 'develop' of...

Merge branch 'develop' of https://www.graphics.rwth-aachen.de:9000/ptrettner/typed-geometry into develop
parents 2f294629 6d893c13
......@@ -218,7 +218,7 @@ template <class Rng, class T>
}
template <class Rng, class Container>
[[nodiscard]] constexpr auto uniform(Rng& rng, Container& c) -> decltype(c[c.size()])
[[nodiscard]] constexpr auto uniform(Rng& rng, Container&& c) -> decltype(c[c.size()])
{
TG_CONTRACT(c.size() > 0 && "cannot pick from an empty container");
return c[uniform(rng, u64(0), u64(c.size() - 1))];
......
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