Commit 55eeddf5 authored by Stuart John Watson's avatar Stuart John Watson

Added setAutoConvert(1) for the configReader.

parent b3c33e6a
......@@ -7,6 +7,7 @@ using namespace libconfig;
int loadConfig(std::string file,Config *cfg){
try{
cfg->readFile(file.c_str());
cfg->setAutoConvert (1);
return (0);
} catch(const FileIOException &fioex){
std::cerr << "I/O error while reading file." << std::endl;
......@@ -51,4 +52,4 @@ float fromConfig(Config *cfg,char * addr,float def){
std::cerr << "WARNING: config value " << addr << " not a float. using default" << std::endl;
return def;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment