Skip to content

Conversation

jblomer
Copy link
Contributor

@jblomer jblomer commented Sep 24, 2025

Conversion between std::unique_ptr<T> and std::optional<T> as well as T --> std::unique_ptr|std::optional<T>.

Copy link

github-actions bot commented Sep 24, 2025

Test Results

    21 files      21 suites   3d 16h 56m 11s ⏱️
 3 678 tests  3 678 ✅ 0 💤 0 ❌
75 424 runs  75 424 ✅ 0 💤 0 ❌

Results for commit edc8d6d.

♻️ This comment has been updated with latest results.

EnsureMatchingOnDiskField(fieldDesc, kDiffTypeName);
EnsureMatchingTypePrefix(fieldDesc, prefixes);
} catch (const RException &) {
fSubfields[0]->SetOnDiskId(GetOnDiskId());
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks a bit sketchy to me: since we're using RException for everything, how can we know that it's not a fatal exception, possibly coming from a deep call inside the Ensure methods?

Unrelated, for the Ensure methods I would adopt the same approach as e.g. VerifyXxHash3, where the call returns a RResult rather than throwing an exception directly (of course in a separate PR)

Copy link
Member

Choose a reason for hiding this comment

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

Also similar question to #19937 (review): Is unconditionally delegating to the item field maybe confusing for the error message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated, for the Ensure methods I would adopt the same approach as e.g. VerifyXxHash3, where the call returns a RResult rather than throwing an exception directly (of course in a separate PR)

Makes sense. See #19971

Copy link
Contributor

@enirolf enirolf left a comment

Choose a reason for hiding this comment

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

Nice! I have two minor documentation suggestions and a question, see below.

@jblomer jblomer force-pushed the ntuple-evolution-nullable branch from 4808ccf to edc8d6d Compare September 27, 2025 21:18
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.

4 participants