On Tuesday, 11 February 2014 at 19:15:25 UTC, Philippe Sigaud wrote:
On Tue, Feb 11, 2014 at 1:05 AM, Namespace <rswhi...@googlemail.com> wrote:

        static opCall(int i)(int j, int k)
        {
                return Foo(i+j,i+k);
        }

        auto bob = Foo!(1)(2,3); //Error:

Welcome to my world ;)
http://forum.dlang.org/thread/hdocnxglxmfpacnpm...@forum.dlang.org

Did you try using a templated constructor?

Like this?

this(int i)(int j, int k)
{
    this.i = i + j;
    this.j = i + k;
}

Same error.

Reply via email to