refRange with non copyable struct

Jerry via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 17 11:30:10 PDT 2017


On Monday, 17 April 2017 at 18:07:36 UTC, Jonathan M Davis wrote:
> Non-copyable types tend to wreak havoc with things
> - Jonathan M Davis

Basicly what I use this for is to combine RAII with ranges.
Which I find quite useful when doing DB queries and the data is 
lazily fetched
since this allows me to guarantee that the query is "closed" and 
another query can take place.



More information about the Digitalmars-d-learn mailing list