The orders of the arguments is different and it gave me quite a headache.
block<int,int>(int,int) takes the dimension in the <> section and the position in the ().
block(int,int,int,int) takes position first and then dimension.
I had them reversed and was segfaulting everywhere :)
The orders of the arguments is different and it gave me quite a headache.
block<int,int>(int,int) takes the dimension in the <> section and the position in the (). block(int,int,int,int) takes position first and then dimension.
I had them reversed and was segfaulting everywhere :)