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
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