You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message is: error: macro "LIBFLATARRAY_REGISTER_SOA" passed 3 arguments, but takes just 2 LIBFLATARRAY_REGISTER_SOA(Cell<4, 1>, ((double)(sum))((double)(value)))
Since it works fine with just one template parameter, the issue might be related to the comma inside Cell<4, 1>.
This issue could potentially be resolved by wrapping the class name in parentheses. But that would still require the user to explicitly list all template instantiations, which is tedious and cumbersome. I'd prefer a solution which leaves the template parameters open (after all, all the macro does is to define some further templates, adding more parameters should work). I'll look into this.
gentryx
changed the title
https://bitbucket.org/gentryx/libflatarray/issues/16/libflatarray_register_soa-does-not-work
LIBFLATARRAY_REGISTER_SOA does not work with class templates having more than one template parameter
Jan 1, 2016
Hi,
i tried to use LibFlatArray with a class template which has more than one template parameter and it didn't compile. A simple example can be found here: https://gist.github.com/anonymous/b188cd1459c1b6d5ca6f
The error message is: error: macro "LIBFLATARRAY_REGISTER_SOA" passed 3 arguments, but takes just 2 LIBFLATARRAY_REGISTER_SOA(Cell<4, 1>, ((double)(sum))((double)(value)))
Since it works fine with just one template parameter, the issue might be related to the comma inside Cell<4, 1>.
Originally reported by @shifty91
Moved from https://bitbucket.org/gentryx/libflatarray/issues/16/libflatarray_register_soa-does-not-work
The text was updated successfully, but these errors were encountered: