https://issues.dlang.org/show_bug.cgi?id=15017

--- Comment #2 from Dylan Knutson <[email protected]> ---
Reduced variant.d 

```
template maxSize(T...)
{
        enum maxSize = T[0].sizeof;
}

struct VariantN(size_t maxDataSize, AllowedTypesParam...)
{
    // Allow assignment from another variant which is a subset of this one
    VariantN opAssign()    {
    }

    // returns 1 if the two are equal
    bool opEquals(T)(T )     {
    }

}

alias Variant = VariantN!(maxSize!creal);
```

--

Reply via email to