Skip to content

Add support for C++ modules #513

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

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

Conversation

mikomikotaishi
Copy link

@mikomikotaishi mikomikotaishi commented May 29, 2025

This pull request adds support for C++20 modules to SQLiteCpp, by creating modules sqlite.*. It is built using the macro SQLITECPP_BUILD_MODULES. The README.md file has also been updated to contain information.

I also added a namespace sqlite = SQLite; alias so that the namespace and module names align.

@SRombauts SRombauts self-requested a review May 31, 2025 14:36
@SRombauts SRombauts self-assigned this May 31, 2025
@mikomikotaishi
Copy link
Author

I am wondering, could we also add a preprocessor macro to export the symbol Exception as SQLException (similar to its name in Java), so that it is not confused with the usual std::exception from the standard library?

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

Successfully merging this pull request may close these issues.

2 participants