[Issue 14836] [REG2.068a] Multiple variadic template argument trick broken

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 27 02:27:43 PDT 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #3 from ag0aep6g at gmail.com ---
Another workaround:

----
template alpha(alias Beta, Charlie...)
{
    void impl(Delta...)() if (Delta.length == 0) {/*...*/}

    void impl(Delta...)(Delta delta) if (Delta.length > 0) {/*...*/}

    alias alpha = impl;
}
----

--


More information about the Digitalmars-d-bugs mailing list