Skip to content

Append ref qualifier to signed-as type on 'this'#20

Open
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:ref-qualifiers
Open

Append ref qualifier to signed-as type on 'this'#20
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:ref-qualifiers

Conversation

@slburson
Copy link
Copy Markdown

This PR goes with libresect #13 and cl-resect #1.

The problem was that I was getting duplicate-definition errors from SBCL (well, it calls them warnings, but then it aborts compilation) on operator= methods. The cause turned out to be that some pairs of these in libtorch were distinguished only by ref qualifiers, which Claw was not capturing. So then iffi:defifun would emit defuns for both of them, causing the error.

I have arranged for the qualifier to appear in the :signed-as type for the this parameter.

@borodust
Copy link
Copy Markdown
Owner

Can you drop a link to the header with the offending C++ functions? I would like to have a look what libtorch does.

@slburson
Copy link
Copy Markdown
Author

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.

2 participants