Issue with forward ranges which are reference types
Mehrdad
wfunction at hotmail.com
Wed Aug 17 07:56:02 PDT 2011
On 8/17/2011 7:14 AM, Steven Schveighoffer wrote:
> Casting is actually the correct solution.
>
> if(auto irange = cast(InputRangeObject)collection)
> {
> // now you can use irange
> if(collection.empty) // success!
> {
> ...
> }
> }
The correct solution? It doesn't even compile. (See my last post, which
was after the one you replied to.)
More information about the Digitalmars-d
mailing list