Fix Clang 19 deprecation failure

Fixes #3994

Clang 19 with libc++ started failing to compile because the default
implementation of `std::char_traits` was removed, making uses of
`std::char_traits<unsigned char>` invalid. This was more of used for
convenience before, but it should be roughly the same behavior with
`char`.

See relevant LLVM commits:

aeecef08c3

08a0faf4cd
This commit is contained in:
Evan Typanski 2024-10-29 09:48:04 -04:00
parent 681fd37a6d
commit 985f4f7c72
3 changed files with 23 additions and 18 deletions

View file

@ -2,7 +2,7 @@
#pragma once
#include <sys/types.h> // for u_char
#include <sys/types.h>
#include <cassert>
#include <map>
#include <string>
@ -67,7 +67,7 @@ protected:
DFA_State* mark;
};
using DigestStr = std::basic_string<u_char>;
using DigestStr = std::string;
struct DFA_State_Cache_Stats {
// Sum of all NFA states