Skip to content

fix: add_bool now calls through buffer_customization.#140

Merged
kkaefer merged 1 commit into
mapbox:masterfrom
mikaellindemann:fix/add_bool_using_buffer_customization
May 22, 2026
Merged

fix: add_bool now calls through buffer_customization.#140
kkaefer merged 1 commit into
mapbox:masterfrom
mikaellindemann:fix/add_bool_using_buffer_customization

Conversation

@mikaellindemann
Copy link
Copy Markdown
Contributor

@mikaellindemann mikaellindemann commented May 21, 2026

As described in #139 I cannot use a buffer of a non-char element type (e.g. std::vector<std::byte>).
By calling through the existing buffer_customization<TBuffer>::push_back function, this use-case should be supported.

fixes #139.

@joto
Copy link
Copy Markdown
Collaborator

joto commented May 21, 2026

Thanks. This looks good to me, but CI didn't succeed due to an unrelated issue that needs fixing first.

@kkaefer
Copy link
Copy Markdown
Member

kkaefer commented May 21, 2026

@mikaellindemann thanks for your submission! could you please rebase this on the latest changes in master to get CI to pass?

@joto
Copy link
Copy Markdown
Collaborator

joto commented May 21, 2026

@mikaellindemann Can you please rebase instead of merging master into your branch?

@mikaellindemann mikaellindemann force-pushed the fix/add_bool_using_buffer_customization branch from 902e29f to 6983bf2 Compare May 21, 2026 19:10
@mikaellindemann
Copy link
Copy Markdown
Contributor Author

I think I managed to do so now.

Thank you very much! 🙏

@kkaefer kkaefer merged commit 29981cf into mapbox:master May 22, 2026
31 checks passed
@mikaellindemann mikaellindemann deleted the fix/add_bool_using_buffer_customization branch May 22, 2026 07:32
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.

basic_pbf_writer::add_bool with buffer of non-char element type does not compile.

3 participants