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

[sip] Implement MappedType for unique_ptr to Python conversion #59513

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nyalldawson
Copy link
Collaborator

Let's see if this works....

(I can't find any way to implement the ConvertToTypeCode... ideas welcome)

Copy link

github-actions bot commented Nov 20, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit e1158b2)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit e1158b2)

Copy link
Contributor

@troopa81 troopa81 left a comment

Choose a reason for hiding this comment

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

Glad to see this kind of PR heading to a more safe C++ approach.

I naively thought that SIP was able to map unique_ptr and you can even get rid of factory/transfer annotation.

The code looks good, LGTM


%ConvertToTypeCode
// only one way for now...
return 0;
Copy link
Member

Choose a reason for hiding this comment

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

I assume if we end up here we'll want an error to be printed somewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants