Can D do some sort of automatic template to "dynamic template" wrapping

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 21 01:35:43 PDT 2015


On Saturday, 19 September 2015 at 21:12:52 UTC, Adam wrote:
> Suppose our templated function is
>
> auto foo(T)(T x) { return x; }

Why not just use 
http://dlang.org/phobos/std_variant.html#.Algebraic ?


More information about the Digitalmars-d mailing list