On Tuesday, 17 June 2014 at 20:54:02 UTC, Luís Marques wrote:
On Tuesday, 17 June 2014 at 20:41:20 UTC, Dicebot wrote:
As far as I understand Luís wants exactly that, for static assert to trigger. Looks like some sort of error gagging hides it and "parent" error message gets printed instead. D does not support SFINAE in general as far as I know.

Yes, thanks for clarifying.

Aren't you just asking for template constraints?

    struct S
    {
        void opDispatch(string name, T)(T value)
        if (T : SomeComplexTemplate!S)
        {
            ...
        }
    }

What am I missing?

Reply via email to