diff --git a/src/test/http_query.cpp b/src/test/http_query.cpp index fd51b67..a5491c2 100644 --- a/src/test/http_query.cpp +++ b/src/test/http_query.cpp @@ -25,7 +25,7 @@ using namespace std::literals; // Compile-time tests for constexpr on compilers which support C++20 constexpr std::string #ifdef __cpp_lib_constexpr_string constexpr std::string query_constexpr(std::string_view in_expression) { - std::string result{ in_expression }; + std::string result{ static_cast(in_expression) }; jessilib::deserialize_http_query(result); return result; } diff --git a/src/test/unicode_sequence.cpp b/src/test/unicode_sequence.cpp index 64fcedc..c48dd21 100644 --- a/src/test/unicode_sequence.cpp +++ b/src/test/unicode_sequence.cpp @@ -26,7 +26,7 @@ using namespace std::literals; // Compile-time tests for constexpr on compilers which support C++20 constexpr std::string #ifdef __cpp_lib_constexpr_string constexpr std::string cpp_constexpr(std::string_view in_expression) { - std::string result{ in_expression }; + std::string result{ static_cast(in_expression) }; jessilib::apply_cpp_escape_sequences(result); return result; }