Here's the gist of what I'm trying to do:

struct Foo
{
public:
        int i;
        int j;

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

void main()
{       
auto bob = Foo!(1)(2,3); //Error: template instance Foo!1 Foo is not a template declaration, it is a struct
}


I'm trying to template the static opCall function, not the struct. Is there a way to do disambiguate between the two?

Reply via email to