Get rid of the non-standard typeof
operator
This commit is contained in:
parent
30e49b68aa
commit
5376c1c0c4
@ -53,7 +53,7 @@ namespace spades {
|
||||
auto begin = std::begin(container);
|
||||
auto end = std::end(container);
|
||||
auto numElements = std::distance(begin, end);
|
||||
begin += SampleRandomInt<typeof(numElements)>(0, numElements - 1);
|
||||
begin += SampleRandomInt<decltype(numElements)>(0, numElements - 1);
|
||||
return *begin;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user