Skip to content

Commit

Permalink
Add missing typenames
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 authored Mar 14, 2022
1 parent 281ee8d commit 3618a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/container_random_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
namespace wyrmgus::container {

template <typename T>
inline const T::value_type &get_random(const T &container)
inline const typename T::value_type &get_random(const T &container)
{
return container[random::get()->generate(container.size())];
}

template <typename T>
inline const T::value_type &get_random_async(const T &container)
inline const typename T::value_type &get_random_async(const T &container)
{
return container[random::get()->generate_async(container.size())];
}
Expand Down

0 comments on commit 3618a34

Please sign in to comment.