static map as a type function

Jacob Carlborg doob at me.com
Wed Sep 23 12:22:49 UTC 2020


On Wednesday, 23 September 2020 at 09:46:54 UTC, Stefan Koch 
wrote:

> static assert(static_map_tf!sizeOf(Int, Ushort) == [4, 2]);

Is it possible to use a lambda here?

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list