Hi,
it was not that I did not apply your patch in bunzip2stream.cpp but because I tried (and failed) to do it better.
I use std::min from <algorithm>, but this header was not included. So I added it and assumed, it would fix the missing template in VC++. But no I found this: http://www.devx.com/tips/Tip/14540. It tells us, that VC++ do not define this std::min at all but std::_cpp_min. But of course gcc and other standard conformant C++ compilers do not define std::_cpp_min. The suggested solution is stupid, since this bounds the code to a non-standard behaviour of VC++.
So the question is, how to convince VC++ to be standard conformant since std::min is perfectly that.
I try to prevent #ifdef's, but prefer always to use standard conformant c++. But here I currently see no alternative.
Tommi