Fixed json generator selector

This commit is contained in:
Bartek Kryza
2023-03-26 00:43:35 +01:00
parent f2062c5909
commit 017fc7025b

View File

@@ -62,8 +62,8 @@ void generate_diagram_select_generator(const std::string &od,
const std::string &name, std::shared_ptr<clanguml::config::diagram> diagram, const std::string &name, std::shared_ptr<clanguml::config::diagram> diagram,
const DiagramModel &model) const DiagramModel &model)
{ {
using diagram_generator = typename diagram_generator_t<DiagramConfig, using diagram_generator =
plantuml_generator_tag>::type; typename diagram_generator_t<DiagramConfig, GeneratorTag>::type;
auto path = std::filesystem::path{od} / auto path = std::filesystem::path{od} /
fmt::format("{}.{}", name, GeneratorTag::extension); fmt::format("{}.{}", name, GeneratorTag::extension);