]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph-dencoder/sstring.h: use `char8_t` instead of `unsigned char` 60997/head
authorMax Kellermann <max.kellermann@ionos.com>
Sat, 2 Nov 2024 21:32:23 +0000 (22:32 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Mon, 9 Dec 2024 12:06:00 +0000 (13:06 +0100)
commit69c6e9e5af73cb19ecbed89d0014ae5b26bed361
tree473be45bfb2f81765d871de60056a3d142241760
parent99f58a5fa1188094f9e4eaaf2208331b52ef2ba8
tools/ceph-dencoder/sstring.h: use `char8_t` instead of `unsigned char`

This fixes a build failure with libc++ (clang/LLVM).  This build
failure is correct: there exists no specialization for
`std::char_traits<unsigned char>`.  The standards-compliant way to use
unsigned chars in strings is to use `char8_t`.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/common/sstring.hh
src/tools/ceph-dencoder/sstring.h