-
Notifications
You must be signed in to change notification settings - Fork 57
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
Override clone behavior #178
Comments
This is somewhat related to #176 where one could benefit of being able to create a custom clone method. |
This seems to be already possible. Quoting here the answer from @duckmayr on SO.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I opened an SO post here.
The idea is that sometimes I have a class that keeps a pointer to a C++ object, for example:
When cloning this class (even with
deep=TRUE
) the c++ object won't be cloned.So it would be nice to be able to override the
clone
method behavior. Is it possible?Maybe allow it only when
cloneable = FALSE
.The text was updated successfully, but these errors were encountered: