Metafunction for rule of zero #656
Closed
JohelEGP
started this conversation in
Suggestions
Replies: 2 comments
-
For my current use case (implementation inheritance), |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing in favor of #665. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
The thread starting at #453 (comment)
demonstrates that it's not feasible to author Cpp2 types with the rule of zero.
You need either non-contextual knowledge of the members involved (so no luck with generic programming),
or attempt to simulate how the language does rule of zero, e.g.:
So I argue that we need a metafunction for the rule of zero.
Beta Was this translation helpful? Give feedback.
All reactions