Skip to content

Commit d352013

Browse files
authored
change the default u32string char type to char32_t (#3059)
1 parent 8dab9c3 commit d352013

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dlib/serialize.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ namespace dlib
626626
USE_DEFAULT_INT_SERIALIZATION_FOR(unsigned long)
627627
USE_DEFAULT_INT_SERIALIZATION_FOR(uint64)
628628
USE_DEFAULT_INT_SERIALIZATION_FOR(int64)
629+
USE_DEFAULT_INT_SERIALIZATION_FOR(char32_t)
629630

630631
USE_DEFAULT_BYTE_SERIALIZATION_FOR(char)
631632
USE_DEFAULT_BYTE_SERIALIZATION_FOR(signed char)

dlib/unicode/unicode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace dlib
1616

1717
// ----------------------------------------------------------------------------------------
1818

19-
using unichar = uint32;
19+
using unichar = char32_t;
2020
using ustring = std::basic_string<unichar>;
2121

2222
// ----------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)