66#include < variant>
77
88#include < spdlog/spdlog.h>
9+ #include < nlohmann/json.hpp>
910
1011#include " config/config_exception.h"
11- #include " config/config_source_interface.h"
1212#include " config/config_specification.h"
1313#include " config/source/command_line_arguments.h"
1414#include " config/source/environment_variables.h"
1515#include " config/source/yaml_file.h"
16- #include " silo/common/cons_list.h"
17- #include " silo/common/fmt_formatters.h"
18- #include " silo/common/overloaded.h"
1916
2017namespace silo ::config {
2118
@@ -27,7 +24,7 @@ namespace silo::config {
2724// and instead creating a factory method would also be possible.
2825template <typename C>
2926concept Config = requires (
30- C c ,
27+ C config ,
3128 const VerifiedConfigAttributes& config_source,
3229 const VerifiedCommandLineArguments& cmd_source
3330) {
@@ -48,10 +45,10 @@ concept Config = requires(
4845 // / exceptions, except overwriteFrom can call SILO_PANIC when there
4946 // / is an inconsistency (bug) between ConfigSpecification and
5047 // / overwriteFrom implementation.
51- { c .overwriteFrom (config_source) } -> std::same_as<void >;
48+ { config .overwriteFrom (config_source) } -> std::same_as<void >;
5249
5350 // / Validation / Sanity checks about the values of this config
54- { c .validate () } -> std::same_as<void >;
51+ { config .validate () } -> std::same_as<void >;
5552};
5653
5754std::optional<std::filesystem::path> getConfigFilePath (
0 commit comments