remove std::distance
std::distance internally uses a loop. The compiler may or may not optimize it away. constexpr std::distance comes in C++17.
Signed-off-by: Rosen Penev rosenp@gmail.com
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
std::distance internally uses a loop. The compiler may or may not optimize it away. constexpr std::distance comes in C++17.
Signed-off-by: Rosen Penev rosenp@gmail.com