Make it work on centos7
This commit is contained in:
parent
6537cf3cc3
commit
40173857db
@ -5,7 +5,7 @@
|
|||||||
bool Configuration::readConfiguration(const std::string &file) {
|
bool Configuration::readConfiguration(const std::string &file) {
|
||||||
libconfig::Config cfg;
|
libconfig::Config cfg;
|
||||||
try {
|
try {
|
||||||
cfg.readFile(file);
|
cfg.readFile(file.c_str());
|
||||||
} catch (const libconfig::FileIOException &fioex) {
|
} catch (const libconfig::FileIOException &fioex) {
|
||||||
std::cerr << "Couldn't open configuration file" << std::endl;
|
std::cerr << "Couldn't open configuration file" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user