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 "length" with "size" to be compatible with other types than String (e.g. std::vector<char>) #9

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

hkerma
Copy link
Contributor

@hkerma hkerma commented Sep 10, 2024

As specified in the documentation, it should be possible to use an std::vector<char> as template class for Strings. However, the length function does not exist for std::vector (although both do the same thing).
This replaces the .length() with .size() in include/xcdat/code_table.hpp].

@kampersanda kampersanda merged commit 2451441 into kampersanda:master Sep 10, 2024
1 check passed
@kampersanda
Copy link
Owner

@hkerma

Good catch! Thank you very much.

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.

2 participants