Open Yikai-Liao opened 10 months ago
I also get similar error with Clang 11 and GCC 9 on linux like
/data/include/alpaca/detail/struct_nth_field.h:14:11: error: type 'const hos::xs::Sk<float>' decomposes into 6 elements, but only 1 names were provided
[build] auto &[p1] = value;
The only 1 names
part would change to only 2 names
if I change the constructor from 1 argument to 2 arguments. The struct Sk has 6 members.
The following 3 cases could pass compile
But once the constructor accepts more than one arugments, we will get an error, like this:
Note that I'm using c++20 and msvc 19.38.33133.0 on windows11. And I have read the similar issue #24