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

Replace pqxx::bytes. #924

Open
jtv opened this issue Jan 9, 2025 · 0 comments
Open

Replace pqxx::bytes. #924

jtv opened this issue Jan 9, 2025 · 0 comments
Labels

Comments

@jtv
Copy link
Owner

jtv commented Jan 9, 2025

As the documentation says, the recently introduced type aliases pqxx::bytes and pqxx::bytes_view need to be changed. They are currently aliases for std::basic_string<std::byte> and std::basic_string_view<std::byte> respectively. I've already changed bytes_view, but bytes is harder.

Unfortunately this will break code. There are substantial differences in constructor signatures between std::basic_string and std::vector``. I've tried working around that by deriving my own class from std::vector`, but besides being a surprising amount of work, it negates the whole idea of using a standard library type!

@jtv jtv added the 8.0 label Jan 9, 2025
@jtv jtv changed the title Replace pqxx::bytes and pqxx::bytes_view. Replace pqxx::bytes. Jan 25, 2025
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