-
Notifications
You must be signed in to change notification settings - Fork 60
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
fix: use type std::size_t
for index in Collection
element accessors and size()
#408
fix: use type std::size_t
for index in Collection
element accessors and size()
#408
Conversation
Thanks for working on this. I think you also have to change the definitions to match here: podio/python/templates/Collection.cc.jinja2 Lines 31 to 45 in f4c9219
|
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 for spotting and fixing this.
Looks like the I can try to make |
Yes that is a slightly annoying but known issue, see #403. |
All right, I think that's all of them. I didn't bother to change the internal
since that may be a bit overkill; my main concern was from the user-facing side of the generated C++ code. I didn't touch any of the Do we need to add podio/python/podio/generator_utils.py Lines 41 to 54 in f4c9219
|
This reverts commit aa797bd.
The Thanks again for going through all the bits and pieces here. Waiting for CI to succeed and then I think this can be merged. |
Maybe |
Good point. I don't have a strong opinion on it either. Strictly speaking |
Done in f9880d6. Do we need |
Good catch. Those should be the only ones for this PR. |
size_t
for index in Collection
element accessorsstd::size_t
for index in Collection
element accessors and size()
…rs and `size()` (AIDASoft#408) * fix: use type `size_t` for index in `Collection` element accessors * fix: `unsigned int` -> `size_t` in `Collection.cc.jinja2` * fix: use `size_t` in `macro multi_relation_handling` * fix: `size_t` -> `std::size_t` * fix: add `#include <cstddef>` to `{,Mutable}Object.h.jinja2`
BEGINRELEASENOTES
Collection::size()
and index for const object accessorsENDRELEASENOTES
fix #406