aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-19 12:24:09 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-19 12:24:09 +0100
commitef699ea4d7d8874397413f09d63049be89d7329a (patch)
tree0efb9d81d3ad7c953d16f0475a625cdc09e93e04
parent7b97551741638838332ab7566d932200830f018d (diff)
downloadrspamd-ef699ea4d7d8874397413f09d63049be89d7329a.tar.gz
rspamd-ef699ea4d7d8874397413f09d63049be89d7329a.zip
[Rework] Switch minimum C++ standard version to C++20
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/libserver/html/html.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bf862f500..40d88b8bb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,7 +27,7 @@ CMAKE_POLICY(SET CMP0075 NEW)
# This is supported merely with cmake 3.1
SET(CMAKE_C_STANDARD 11)
-SET(CMAKE_CXX_STANDARD 17)
+SET(CMAKE_CXX_STANDARD 20)
SET(CMAKE_C_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index a5cab7470..265a31f13 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -313,7 +313,7 @@ html_parse_tag_content(rspamd_mempool_t *pool,
if (c == '\0') {
/* Replace with u0FFD */
- parser_env.buf.append(u8"\uFFFD");
+ parser_env.buf.append((const char *)u8"\uFFFD");
}
else {
parser_env.buf.push_back(c);
@@ -1052,7 +1052,7 @@ html_append_parsed(struct html_content *hc,
const auto last = input.cend();
for (auto it = input.cbegin(); it != last; ++it) {
if (*it == '\0') {
- output.append(u8"\uFFFD");
+ output.append((const char *)u8"\uFFFD");
}
else {
output.push_back(*it);