Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit e53efd9

Browse files
authored
Fixed compilation bug with u8_string fallback
1 parent 15f744a commit e53efd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/tinyutf8/tinyutf8.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ namespace tiny_utf8
114114

115115
//! Typedef of string (data type: char)
116116
using string = basic_string<char32_t, char>;
117+
using utf8_string = basic_string<char32_t, char>; // For backwards compatibility
117118

118119
//! Typedef of u8string (data type char8_t)
119120
#if __cplusplus > 201703L
@@ -123,9 +124,6 @@ namespace tiny_utf8
123124
using u8string = utf8_string;
124125
#endif
125126
#endif
126-
127-
//! Typedef of utf8_string (data type: char)
128-
using utf8_string = basic_string<char32_t, char>; // For backwards compatibility
129127

130128
//! Implementation Detail
131129
namespace tiny_utf8_detail

0 commit comments

Comments
 (0)