March 01, 2018 [Issue 12411] New eponymous template syntax could support nested eponymous templates | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12411 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx -- | ||||
July 04, 2022 [Issue 12411] New eponymous template syntax could support nested eponymous templates | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12411 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- Can just use this now: ----- enum isEqual(T1, T2) = is(T1 == T2); void main() { alias isInt = isEqual!int; static assert(isInt!int); } ----- It works fine. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply