From 5202449f0a8a78f06f92d9cf5ce6f9e981a0697e Mon Sep 17 00:00:00 2001 From: jie Date: Fri, 22 Oct 2021 12:24:24 +0800 Subject: [PATCH] fix bug: logging: no ends_with in c++17 --- WebApp/bserv/include/bserv/logging.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebApp/bserv/include/bserv/logging.hpp b/WebApp/bserv/include/bserv/logging.hpp index 1c10c79..90d7176 100644 --- a/WebApp/bserv/include/bserv/logging.hpp +++ b/WebApp/bserv/include/bserv/logging.hpp @@ -33,7 +33,7 @@ namespace bserv { inline void init_logging(const server_config& config) { if (config.get_log_path() != "") { std::string filename = config.get_log_path(); - if (!filename.ends_with('/')) { + if (filename[filename.size() - 1] != '/') { filename += '/'; } filename += config.get_name();