-
Notifications
You must be signed in to change notification settings - Fork 120
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
cannot create an unsigned char bzip2 compressor #141
Comments
I think it's hard-coded because much of the C compression API uses "char" so making it generic would cause lots of other issues. |
Sure, in the same way that any wrapper around a C API has hard-coded types. But surely this can be done in such a way that |
Note: I am not speaking with any particular authority and certainly not for the boost project. |
If that's the case what is the point of having a polymorphic I mean, we could have all C++ API just take |
The polymorphism is to allow replacing the allocator, e.g. to allocate from a fixed memory pool on some embedded device. I.e. HOW the memory is allocated, not which TYPE. |
https://godbolt.org/z/6Gq67Yd8x
This is due to
bzip2_base::char_type
being hard-coded:iostreams/include/boost/iostreams/filter/bzip2.hpp
Lines 154 to 156 in 9edd46f
The text was updated successfully, but these errors were encountered: