-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Update CowPtr and Clone to fix testClone2 #1382
Conversation
Also related to #1203 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @JacquesOlivierLachaud . Just couple of typos.
Travis CI errors seem not to be related to this PR. Was there a recent PR modifying the travis script ? |
I appends sometimes, it seems to be temporary issues with Travis... I've restarted the jobs ;) |
Looks ready now :-) |
All good for me too. Thx @JacquesOlivierLachaud and @rolanddenis ! Merging (can you please close the associated Issues ?) |
PR Description
This PR fixes an issue in testClone2.cpp (and more generally in the Clone / CowPtr and CountedPtr mecanism) so that it compiles correctly both with gcc and clang (and hopefully Visual Studio).
GCC was unable to solve a construction of a CountedPtr member from a Clone parameter in an efficient way.
Related to #1381. Fix #1203.
Checklist
cmake
mode (otherwise, Travis C.I. will fail).