Compilation fails when using cta::common::Configuration::getConfEntInt(...)
Summary
Compilation fails when using cta::common::Configuration::getConfEntInt(...)
e.g.:
config.getConfEntInt<unsigned int>("gRPC", "port", DEFAULT_PORT, upLog.get());
results in:
common/Configuration.hpp:145:30: error: no matching function for call to 'cta::common::Configuration::InvalidConfigEntry::InvalidConfigEntry(const char*, const char*, const char*)'
InvalidConfigEntry ex(category.c_str(),
...
common/exception/Exception.hpp:41:3: note: candidate: 'cta::exception::Exception::Exception(const string&, bool)'
Exception(const std::string &context = "", const bool embedBacktrace = true);
...
Proposed solution
Change call of InvalidConfigEntry ex(category.c_str(), ...
to InvalidConfigEntry ex;
, similar to what is done here here