Andrei Alexandrescu wrote:
Daniel Keep wrote:Actually, I've been thinking and I realised that in 95% of cases, you can assume a range is resumable if it has no references.Well I'm not so sure. How about a range around an integral file handle or socket?
If ranges can advertise their resumability, it wouldn't be hard to write a simple template wrapper that provides resumability to an underlying non-resumable range.
--benji