[Python] Fix invalid overload selections via explicit constructors#19513
Merged
guitargeek merged 2 commits intoroot-project:masterfrom Aug 4, 2025
Merged
[Python] Fix invalid overload selections via explicit constructors#19513guitargeek merged 2 commits intoroot-project:masterfrom
guitargeek merged 2 commits intoroot-project:masterfrom
Conversation
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Closes root-project#16573.
Test Results 21 files 21 suites 3d 5h 20m 43s ⏱️ Results for commit 27f1e9b. |
dpiparo
approved these changes
Aug 4, 2025
vepadulano
approved these changes
Aug 4, 2025
guitargeek
added a commit
to guitargeek/cppyy-backend
that referenced
this pull request
Aug 6, 2025
This is important to avoid implicit conversions over explicit constructors. Taken from root-project/root#19513.
guitargeek
added a commit
to guitargeek/CPyCppyy
that referenced
this pull request
Aug 6, 2025
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Taken from root-project/root#19513
guitargeek
added a commit
to guitargeek/CPyCppyy
that referenced
this pull request
Aug 11, 2025
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Taken from root-project/root#19513
aaronj0
pushed a commit
to aaronj0/CPyCppyy
that referenced
this pull request
Jan 29, 2026
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Taken from root-project/root#19513
aaronj0
pushed a commit
to aaronj0/CPyCppyy
that referenced
this pull request
Mar 2, 2026
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Taken from root-project/root#19513
aaronj0
pushed a commit
to aaronj0/CPyCppyy
that referenced
this pull request
Mar 2, 2026
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Taken from root-project/root#19513
aaronj0
pushed a commit
to aaronj0/CPyCppyy
that referenced
this pull request
Mar 3, 2026
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Taken from root-project/root#19513
aaronj0
pushed a commit
to compiler-research/CPyCppyy
that referenced
this pull request
Mar 9, 2026
In C++, it is forbidden to use `explicit` constructors in implicit conversions, but cppyy was not aware of this so far. This commit fixes that by disabling explicit constructors in the context of implicit conversions. Taken from root-project/root#19513
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In C++, it is forbidden to use
explicitconstructors in implicitconversions, but cppyy was not aware of this so far.
This commit fixes that by disabling explicit constructors in the context
of implicit conversions.
Closes #16573.