[init_implicit] private or protected copy construtor. #270
-
When a subclass has a private or protected copy construtor, it can't use init_implicit to convert to it's baseclass.
|
Beta Was this translation helpful? Give feedback.
Answered by
wjakob
Aug 19, 2023
Replies: 1 comment 1 reply
-
You are missing an ampersand ( |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
huangweiwu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are missing an ampersand (
&
) in theinit_implicit
declaration. Otherwise you are binding a call-by-value constructor, and your type is not copyable.