Fix compilation of configuration.cpp in Ubuntu 22.04

This commit is contained in:
Guillaume Meunier committed 2023-07-29 15:40:27 +02:00
1 parent 52b26250d3
commit cef644e5da
1 file changed
+9 -1
+9 -1
View File
@@ -20,6 +20,9 @@
#include <filesystem>
#include <fstream>
#define JSON_DISABLE_ENUM_SERIALIZATION 1
#ifdef JSON_DIAGNOSTICS
#undef JSON_DIAGNOSTICS
#endif
#define JSON_DIAGNOSTICS 1
#include <nlohmann/json.hpp>
#include <stdlib.h>
@@ -105,7 +108,12 @@ configuration configuration::read_user_configuration()
if (json["application"].is_string())
result.application.push_back(json["application"]);
else
result.application = json["application"];
{
for(const auto& i: json["application"])
{
result.application.push_back(i);
}
}
}
}
catch (const std::exception & e)