[phobos] bug in map

Jacob Carlborg doob at me.com
Mon Aug 6 12:11:07 PDT 2012


On 6 aug 2012, at 20:55, Andrei Alexandrescu wrote:

> Consider:
> 
> auto s = "some string";
> static assert(!hasLength(typeof(s));
> auto m = map!(a => a)(s);
> static assert(!hasLength(typeof(s));


Do you mean:

static assert(!hasLength(typeof(m)));

For the second assert?

-- 
/Jacob Carlborg



More information about the phobos mailing list