c++ 20 compiler support

This commit is contained in:
halx99 2022-10-05 10:55:57 +08:00
parent 4bec1e8a9c
commit 72e32013fc
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ TEST(memory_large_allocations)
// grow
for (node = doc.first_child(); node; node = node.next_sibling())
{
std::basic_string<char_t> s = node.value();
std::basic_string<char_t> s{ node.value() };
CHECK(node.set_value((s + s).c_str()));
}

View File

@ -146,7 +146,7 @@ TEST(as_utf8_invalid)
TEST(as_utf8_string)
{
std::basic_string<wchar_t> s = L"abcd";
std::wstring s = L"abcd";
CHECK(as_utf8(s) == "abcd");
}