I'm trying to get file size value from range-v3, like this.
std::ifstream i("test.bin", std::ios::binary | std::ios::in);
auto rng = ranges::istream_range<unsigned char>(i);
std::cout << ranges::distance(rng);
However it seems that a wrong size is returned from the distance function. Why?