DPP
DPP copied to clipboard
std::basic_string<uint8_t> is broken for LLVM-19
Describe the bug
The uint8_t type is typedef'ed as unsigned char in glibc. However the support for unsigned char type has been removed from std::char_traits in libc++ according to https://reviews.llvm.org/D138307. This gives an "implicit instantiation of undefined template std::char_traits<unsigned char>" error, during build.
To Reproduce Steps to reproduce the behavior:
- Compile D++ using the latest libc++.
System Details:
- OS: Linux
Additional context I would like to know what could be the proposed fix for this? I wouldn't mind sending the PR.
what thing in dpp actually causes the warning, under what compiler and version?
It's on this line https://github.com/brainboxdotcc/DPP/blob/89b43ba1445f99114f1c583529d01ad210918c35/include/dpp/dispatcher.h#L2016. The compiler is Clang 19.
I'm not sure this needs to be a string, perhaps a vector would suffice? it is important for it to be unsigned 8 bit wide elements though.
Yeah, I agree.
Any news on this?
Idk we just need to have someone pick this up
I can look into this next week
I can look into this next week
No unfortunately I just got extremely busy 😔
I think we should close this issue.