Deduplicating Template Parameter List of std.variant.Algebraic
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 25 09:08:39 PDT 2015
On Thursday, 24 September 2015 at 20:20:42 UTC, Nordlöw wrote:
> I just noticed that Algebraic doesn't deduplicate its types
> before construction because this compiles:
>
> import std.variant : Algebraic;
> auto x = Algebraic!(int, int)(5);
>
> Is this really sane?
How can a template parameter list be deduplicated or sorted?
More information about the Digitalmars-d-learn
mailing list