mattkretz/wg21-papers

Support non-const conversion operators on broadcast

Closed this issue · 1 comments

VcDevel/Vc@371190d resolves a corner case on implicit conversion for the broadcast. This appears to be unnecessary with Clang 4.0 and GCC 6, though. I'm actually not sure why Clang 3.8 would be wrong to reject a conversion from const convertible to int if convertible::operator int() is non-const.

I changed the broadcast ctor to use perfect forwarding. Now, do I need to change the wording talking about the U template parameter? And do I need to prescribe forwarding or is the U&& signature enough?
image