The generator expression will not outlive the scope of
'node_shapes_without_svg_shape' or 'all_node_shapes' which both live
in the global scope, so copying is unnecessary.
For details, see
https://github.com/catchorg/Catch2/blob/devel/docs/generators.md#provided-generators.
const auto rankdir = GENERATE(from_range(all_rank_directions));
INFO(fmt::format("Rankdir: {}", rankdir));
- const auto shape = GENERATE_COPY(filter(
+ const auto shape = GENERATE(filter(
[](std::string_view shape) {
return !node_shapes_without_svg_shape.contains(shape);
},