mixin template Magic() { import std.array : split; static if (is(typeof(this) == T!(A), alias T, A...)) {mixin(`alias Other = ` ~ T.stringof.split('(')[0] ~ `!(K.B);`);
} else { static assert (0); } }
divi via Digitalmars-d-learn Thu, 19 Sep 2019 15:01:04 -0700
mixin template Magic() { import std.array : split; static if (is(typeof(this) == T!(A), alias T, A...)) {mixin(`alias Other = ` ~ T.stringof.split('(')[0] ~ `!(K.B);`);
} else { static assert (0); } }