Skip to content
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

[ntuple] Make RNTupleDescriptor::Clone() return it by value #17500

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

silverweed
Copy link
Contributor

It doesn't make much sense to return the descriptor by unique_ptr, because it's not polymorphic and it's not copyable, so value+move semantics do a better job (and they are consistent with the other descriptors).

Also marked all descriptor classes final because they're not meant to be overridden by users.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

Copy link

github-actions bot commented Jan 23, 2025

Test Results

    18 files      18 suites   4d 9h 14m 26s ⏱️
 2 684 tests  2 684 ✅ 0 💤 0 ❌
46 614 runs  46 614 ✅ 0 💤 0 ❌

Results for commit fb02206.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@jblomer jblomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (but see compiler errors)

It doesn't make much sense to return the descriptor by unique_ptr,
because it's not polymorphic and it's not copyable, so value+move semantics
do a better job (and they are consistent with the other descriptors).

Also marked all descriptor classes final because they're not meant to
be overridden by users.
@dpiparo dpiparo closed this Jan 24, 2025
@dpiparo dpiparo reopened this Jan 24, 2025
@silverweed silverweed merged commit d0e3f5b into root-project:master Jan 27, 2025
23 of 41 checks passed
@silverweed silverweed deleted the ntuple_desc_changes branch January 27, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants