fix bug: logging: no ends_with in c++17
This commit is contained in:
parent
ed61b702f6
commit
5202449f0a
|
@ -33,7 +33,7 @@ namespace bserv {
|
||||||
inline void init_logging(const server_config& config) {
|
inline void init_logging(const server_config& config) {
|
||||||
if (config.get_log_path() != "") {
|
if (config.get_log_path() != "") {
|
||||||
std::string filename = config.get_log_path();
|
std::string filename = config.get_log_path();
|
||||||
if (!filename.ends_with('/')) {
|
if (filename[filename.size() - 1] != '/') {
|
||||||
filename += '/';
|
filename += '/';
|
||||||
}
|
}
|
||||||
filename += config.get_name();
|
filename += config.get_name();
|
||||||
|
|
Loading…
Reference in New Issue