auto dot = "graph {}";
auto g = std::make_shared<CGraph::AGraph>(dot);
- const auto layout1 = GVC::GVLayout(std::move(gvc1), g, "dot");
+ // create a layout and automatically destroy it
+ { const auto layout1 = GVC::GVLayout(std::move(gvc1), g, "dot"); }
auto gvc2 = GVC::GVContext(lt_preloaded_symbols, demand_loading);
- const auto layout2 = GVC::GVLayout(std::move(gvc2), g, "dot");
+
+ // create another layout and automatically destroy it
+ { const auto layout2 = GVC::GVLayout(std::move(gvc2), g, "dot"); }
}
TEST_CASE("Layout with an unknown engine throws an exception") {