We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7e8c4f commit 8e9d851Copy full SHA for 8e9d851
hdr/sqlite_modern_cpp/utility/utf16_utf8.h
@@ -2,6 +2,7 @@
2
3
#include <locale>
4
#include <string>
5
+#include <algorithm>
6
7
#include "../errors.h"
8
@@ -10,7 +11,7 @@ namespace sqlite {
10
11
inline std::string utf16_to_utf8(const std::u16string &input) {
12
struct : std::codecvt<char16_t, char, std::mbstate_t> {
13
} codecvt;
- std::mbstate_t state;
14
+ std::mbstate_t state{};
15
std::string result((std::max)(input.size() * 3 / 2, std::size_t(4)), '\0');
16
const char16_t *remaining_input = input.data();
17
std::size_t produced_output = 0;
0 commit comments