Closed mattkretz closed 7 years ago
I don't love that this compiles in some places but not others. But, if it's just a conforming extension, I guess I'd be okay with it (e.g. if we just don't explicitly say anything about it).
I usually strongly favor consistency, so I may be biased.
I'm tending towards treating this as a QoI issue. It's still a conforming extension, but in general, the conversion to/from std::array
should not work.
I'll propose to_bitset
and from_bitset
or similar for mask
(see #52) at some later point. In the same manner it may be useful to have a to_array
and from_array
for datapar
.
Testcase
Expected Results
std::array
is too common a type, therefore the above needs more thought. Maybe fixed_size datapars (and masks) should have conversion to/fromstd::array
in P0214 proper. I still believe that native ABIs should not have it. Alternative: disallowstd
types as "native_handle" types.