Accept std::basic_string with custom allocators in the API instead of enforcing std::string #6730
mp-t
started this conversation in
Contribute
Replies: 2 comments
-
I don't know if we can do that without breaking the existing API/ABI. Do you have some more info about this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
We could "templatize" these parts of library (like std::basic_string does), make current classes as derived and we could check ABI with this tool: https://github.com/lvc/abi-tracker |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The ImageMagick interface accepts a
std::string
in several functions. For example theMagick::Image
constructor.It would be useful if these functions would be templated to allow a
std::basic_string<char, T>
.This would allow strings with custom allocators to work seamlessly with ImageMagick.
Beta Was this translation helpful? Give feedback.
All reactions