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

Use std::source_location in exceptions. #923

Open
jtv opened this issue Jan 9, 2025 · 1 comment
Open

Use std::source_location in exceptions. #923

jtv opened this issue Jan 9, 2025 · 1 comment
Labels

Comments

@jtv
Copy link
Owner

jtv commented Jan 9, 2025

In libpqxx 8.0 we will assume compiler support for C++20. As of 7.10 we also have a streamlined system of SQL execution functions.

Combining those things it becomes more feasible to pass std::source_location in various places, and include it when throwing exceptions. This is what replaces the old "description" parameters. It won't be perfect from the start: the idea is to get the source location where libpqxx gets called from the outside, i.e. errors will indicate a location inside the caller's code.

@jtv jtv added the 8.0 label Jan 9, 2025
@jtv
Copy link
Owner Author

jtv commented Jan 25, 2025

(As a first step I'm retiring the checks and conditionals for source_location support: We can now just assume that this feature works.)

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

No branches or pull requests

1 participant