Closed dieram3 closed 5 months ago
Thanks for reporting.
I checked the code, and it seems std::basic_string is specialized only for the default allocator. I think the fix might be as simple as replacing ...
That looks like the correct fix (modulo also making char_traits a template parameter). Could you submit a PR?
Sure thing!
When using a
std::basic_string
with a custom allocator, it fails to compile in a few use cases, e.g.:You can reproduce the error here: https://godbolt.org/z/4oa1jqr1G
I checked the code, and it seems
std::basic_string
is specialized only for the default allocator. I think the fix might be as simple as replacingwith
It is also not clear why printing a
std::pmr::string
alone works. Maybe it's falling back tostring_view
while the tuple version is not.