-
Notifications
You must be signed in to change notification settings - Fork 132
Provide different tests for JSON output #44
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
Conversation
| $(TestDiff) | ||
|
|
||
| RootClasses: RootClasses.log | ||
| $(TestDiff) |
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.
Please add
RootClasses.log: test_classes_h.$(DllSuf)
for all the cases that uses test_classes.h+ to allow for parallel builds.
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.
I add correspondent rule in Makefile
root/io/json/test_classes.h
Outdated
| } | ||
| virtual ~TJsonEx3() | ||
| { | ||
| //delete[] fBool; |
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.
Why is the array not deleted?
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.
This was due to missing copy constructor.
I used this class in std::vector and arrays pointers were copied
Now class should work correctly.
root/io/json/test_classes.h
Outdated
| TJsonEx6(bool setvalues = false) | ||
| { | ||
| for (int n=0;n<3;n++) { | ||
| fPtr1[n] = 0; |
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.
whereever you have 0 meaning null pointer, can you use 'nullptr'? thanks.
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.
Done
|
Philippe - you are too fast, |
Included are several classes; testing most kinds of streamer elements.
Will work only after merging root-project/root#580