[Issue 11855] Explicit template instantiation with opDispatch fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 16 08:30:48 PDT 2014


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

Yuriy <yuriy.glukhov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuriy.glukhov at gmail.com

--- Comment #1 from Yuriy <yuriy.glukhov at gmail.com> ---
Seems like it should be done in the following way (though still does not work
with the same error):
struct Foo
{
    template opDispatch(string name)
    {
        void opDispatch (T) () { }
    }
}

--


More information about the Digitalmars-d-bugs mailing list