Repository navigation
Consider explicit conversions before aggregate fallback #279
yronglin
started this conversation in
Issue Triage - Standard Conformance
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Test:
clang and gcc accept this code but edg reject it:
[over.match.ref]/1.1: when binding the
const float2¶meter of the copy constructor to the argument, "For direct-initialization, the permissible types for explicit conversion functions are...", the explicit operatorfloat2() constis therefore a legitimate candidate:float2(const float2&)is viable.https://godbolt.org/z/oKoMvEEdd
All reactions