-
Notifications
You must be signed in to change notification settings - Fork 29
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
Implemented safer C++ DataContainer data type handling, fixes #1193 #1195
Conversation
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.
some probably mostly random comments but hopefully helpful in this review.
I'm not sure if templating ImageData
is a good idea. It certainly breaks backwards compatibility in a huge way. Possibly this could be done by having an intermediate ImageDataTemplate
like you did for DataContainer. However, it might not work, as I guess we'd then need to derive
ImageDatafrom
DataContainer, but
ImageDataTemplatefrom
DataContainerTemplate`. This can be done in C++, but has the potential for some confusion.
Left unattended for a long time, resulting in weird conflicts with master. Taken over by PR #1210. |
Changes in this pull request
Current C++
DataContainer
classes use static casts ofvoid*
pointers, which may be unsafe (cf. #1193).This PR implements an alternative template-based design whereby static casts are only used on C interface level, which is not supposed to be used by SIRF users.
Testing performed
Related issues
Fixes #1193
Checklist before requesting a review
Contribution Notes
Please read and adhere to the contribution guidelines.
Please tick the following: