std.Stream.InputStream convenience functions
bitwise via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 5 21:48:54 PDT 2015
On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile wrote:
> [...]
> auto rng = StreamRange!(MemoryStream,long)(instance);
> auto rng = StreamRange!(FileStream,float)(instance);
> ---
>
> Actually I have nothing against your helper functions (except
> that they don't make Streams compatible with std.algorithm
> functions).
Same problem... StreamRange(...) assumes that all data in the
stream is of the same type.
-Bit
More information about the Digitalmars-d
mailing list