Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement impl Clone for Box<dyn DynClone> #22

Closed
kodieg opened this issue Feb 27, 2023 · 0 comments · Fixed by #23
Closed

Implement impl Clone for Box<dyn DynClone> #22

kodieg opened this issue Feb 27, 2023 · 0 comments · Fixed by #23

Comments

@kodieg
Copy link

kodieg commented Feb 27, 2023

Hi,

I noticed that DynClone is not clone, so it cannot be used to represent any cloneable struct. Would it be possible to just add following macro invocation, to make DynClone cloneable on it's own?

dyn_clone::clone_trait_object!(DynClone);

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant