Skip to content

headers: Drop LIBXMLPP_API from 'friend' members #47

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

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

fanc999
Copy link
Collaborator

@fanc999 fanc999 commented Oct 20, 2022

Hi,

This drops the LIBXMLPP_API from the friend class or friend struct members of classes, so that we can eliminate warnings on MinGW. The other alternative is to handle these classes like what we did in MR #46, since class members are exported individually rather than exported as a whole, if we want to be very very sure about the ABI stability.

With blessings, thank you!

They aren't really necessary and can raise warnings on Windows MinGW
builds unless their locations were exchanged with 'class' or 'struct',
but doing so is not liked by Visual Studio.
@kjellahl
Copy link
Collaborator

No warnings from the MinGW compiler with this fix. Please merge.

if we want to be very very sure about the ABI stability.

I would be surprised if such modifications of friend declarations can affect ABI.
friend declarations tell the compiler what's accessible. I don't think a linker
is affected by them.

@fanc999
Copy link
Collaborator Author

fanc999 commented Oct 21, 2022

Hi,

Thanks for the ack. Here goes.

@fanc999 fanc999 merged commit b8d403f into libxmlplusplus:master Oct 21, 2022
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