Skip to content

Conversation

mikomikotaishi
Copy link

@mikomikotaishi mikomikotaishi commented Aug 17, 2025

This pull request adds support for C++20 modules, as well as puts all symbols in the inlined namespace rtmidi. This change does not break any existing code, but allows symbols to be optionally accessed through the namespace rtmidi in addition to the global namespace. The module itself is imported using import rtmidi; and is enabled with the build macro RTMIDI_BUILD_MODULES.

Introducing modules to the project will not break any code, but is a benefit to users of C++20 and later who may wish to consume the library using modules rather than headers.

@mikomikotaishi
Copy link
Author

@garyscavone Is there anything you want me to address before this PR can be merged?

@mikomikotaishi
Copy link
Author

I think it might be worth looking in to having the inline namespace be optional, so with a compiler flag it could be a mandatory namespace for those who want the symbols strictly outside of the global namespace

@mikomikotaishi
Copy link
Author

May I please get a response or some kind of feedback

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.

1 participant