Don't use std::quoted(), it requires C++14

This commit is contained in:
Alexander A. Klimov 2024-09-23 10:53:56 +02:00
parent 8eaab27bd0
commit 2c34d00261

View File

@ -200,8 +200,8 @@ BOOST_AUTO_TEST_CASE(FormatDateTime) {
// properly reporting errors. If this limitation of our implementation is lifted, other behavior like throwing
// an exception would also be valid.
BOOST_CHECK_MESSAGE(result.empty() || result == format,
"FormatDateTime(" << std::quoted(format) << ", " << ts << ") = " << std::quoted(result) <<
" should be one of [\"\", " << std::quoted(format) << "]");
"FormatDateTime(\"" << format << "\", " << ts << ") = \"" << result <<
"\" should be one of [\"\", \"" << format << "\"]");
}
// Out of range timestamps.