Skip to content

Conversation

jblomer
Copy link
Contributor

@jblomer jblomer commented Oct 6, 2025

Forbid changing the number of base classes except for adding base classes where there were previously none and for removing all of the base classes.

@jblomer jblomer self-assigned this Oct 6, 2025
Forbid changing the number of base classes except for adding base
classes where there were previously none and for removing all of the
base classes.
@jblomer jblomer force-pushed the ntuple-evolution-shape branch from 58eddf8 to 379249b Compare October 6, 2025 14:57
Comment on lines +530 to +531
GetTypeName() + ", " + std::to_string(nInMemoryBaseClasses) + " vs. " +
std::to_string(nOnDiskBaseClasses)));
Copy link
Member

Choose a reason for hiding this comment

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

Consider extending the text to clarify which number is for in memory and which number is for on file. It might also help to add version number (or checksum) of the class onfile layout.

nInMemoryBaseClasses++;
}

if (nInMemoryBaseClasses && nOnDiskBaseClasses && nInMemoryBaseClasses != nOnDiskBaseClasses) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe being explicit would make the condition even clearer?

Suggested change
if (nInMemoryBaseClasses && nOnDiskBaseClasses && nInMemoryBaseClasses != nOnDiskBaseClasses) {
if (nInMemoryBaseClasses != 0 && nOnDiskBaseClasses != 0 && nInMemoryBaseClasses != nOnDiskBaseClasses) {

Copy link

github-actions bot commented Oct 6, 2025

Test Results

    22 files      22 suites   3d 16h 16m 58s ⏱️
 3 685 tests  3 685 ✅ 0 💤 0 ❌
79 141 runs  79 141 ✅ 0 💤 0 ❌

Results for commit 379249b.

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