minElement on array of const objects

Nathan S. no.public.email at example.com
Mon Nov 13 12:15:26 UTC 2017


>Unqual!Element seed = r.front;

>alias MapType = Unqual!(typeof(mapFun(CommonElement.init)));

This looks like a job for std.typecons.Rebindable!(const A) 
instead of Unqual!(const A) which is used currently. I am 
surprised that this is the first time anyone has run into this.



More information about the Digitalmars-d-learn mailing list