Skip to content

Conversation

@guitargeek
Copy link
Contributor

The TF1, TF2, and TF3 constructors for CINT compatibility can be removed. This concerns the templated constructors that additionally took the name of the used functor class and member function. With ROOT 6, these names can be omitted.

See also commit 4e4cdfb from 2015, where these constructors were introduced.

The idea is to clear a bit more the jungle of TH1 constructors, of which there are too many. That makes it confusing for our uses and for cppyy overload resolution.

@github-actions
Copy link

github-actions bot commented Dec 11, 2025

Test Results

    22 files      22 suites   3d 19h 13m 44s ⏱️
 3 792 tests  3 792 ✅ 0 💤 0 ❌
80 307 runs  80 307 ✅ 0 💤 0 ❌

Results for commit 462ce97.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek force-pushed the tf_backward_compatibility branch from 3e94437 to 462ce97 Compare January 5, 2026 13:50
Copy link
Member

@lmoneta lmoneta 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 please update the doc in
https://root.cern.ch/doc/master/classTF1.html#F6

The `TF1`, `TF2`, and `TF3` constructors for CINT compatibility can be
removed. This concerns the templated constructors that additionally took
the name of the used functor class and member function. With ROOT 6,
these names can be omitted.

See also commit 4e4cdfb from 2015, where these constructors were
introduced.

The idea is to clear a bit more the jungle of `TH1` constructors, of
which there are too many. That makes it confusing for our uses and for
cppyy overload resolution.
@guitargeek guitargeek force-pushed the tf_backward_compatibility branch from 462ce97 to 5a5ab93 Compare January 6, 2026 16:19
@guitargeek guitargeek requested a review from hageboeck as a code owner January 6, 2026 16:19
@guitargeek guitargeek merged commit bec6eb3 into root-project:master Jan 6, 2026
27 of 29 checks passed
@guitargeek guitargeek deleted the tf_backward_compatibility branch January 6, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants