Skip to content

Commit

Permalink
fixup! [config] adds minimal stopping criteria specification
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed May 29, 2024
1 parent 930b9d6 commit 829b991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/config/config_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ std::vector<deferred_factory_parameter<const stop::CriterionFactory>>
parse_or_get_criteria(const pnode& config, const registry& context,
const type_descriptor& td)
{
if (config.get_tag() == pnode::tag_t::array) {
if (config.get_tag() == pnode::tag_t::array ||
(config.get_tag() == pnode::tag_t::map && config.get("type"))) {
return parse_or_get_factory_vector<const stop::CriterionFactory>(
config, context, td);
}
Expand Down

0 comments on commit 829b991

Please sign in to comment.