diff --git a/tests/test_memory.cpp b/tests/test_memory.cpp index 790ce97..0085cf1 100644 --- a/tests/test_memory.cpp +++ b/tests/test_memory.cpp @@ -110,7 +110,7 @@ TEST(memory_large_allocations) // grow for (node = doc.first_child(); node; node = node.next_sibling()) { - std::basic_string s{ node.value() }; + std::basic_string s(node.value()); CHECK(node.set_value((s + s).c_str())); }