Get rid of the non-standard typeof operator

This commit is contained in:
yvt 2018-09-18 22:33:48 +09:00
parent 30e49b68aa
commit 5376c1c0c4

View File

@ -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;
}