From 40173857dbbd08c7f294289bdcd3983858a17bca Mon Sep 17 00:00:00 2001 From: zvon Date: Tue, 27 Jul 2021 17:13:32 +0000 Subject: [PATCH] Make it work on centos7 --- config/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.cpp b/config/config.cpp index fa5efb1..cbc1fe4 100644 --- a/config/config.cpp +++ b/config/config.cpp @@ -5,7 +5,7 @@ bool Configuration::readConfiguration(const std::string &file) { libconfig::Config cfg; try { - cfg.readFile(file); + cfg.readFile(file.c_str()); } catch (const libconfig::FileIOException &fioex) { std::cerr << "Couldn't open configuration file" << std::endl; return false;