Skip to content

Commit

Permalink
refactor: gcc requires std::visit's to visit the underlying_x type's
Browse files Browse the repository at this point in the history
  • Loading branch information
sillydan1 committed Sep 30, 2022
1 parent 70896fe commit a79ce33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ntta/interesting_tocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace aaltitoad {
});
},
[](auto&&){ return false; }
), tree.node);
), static_cast<const expr::underlying_syntax_node_t&>(tree.node));
}

auto interesting_tocker::contains_external_variables(const expr::syntax_tree_t& tree, const expr::symbol_table_t& symbols) const -> bool {
Expand All @@ -97,7 +97,7 @@ namespace aaltitoad {
});
},
[](auto&&){ return false; }
), tree.node);
), static_cast<const expr::underlying_syntax_node_t&>(tree.node));
}

auto interesting_tocker::get_name() -> std::string {
Expand Down
2 changes: 1 addition & 1 deletion src/verification/ctl_sat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace aaltitoad {
default: throw std::logic_error("not a valid raw CTL operator");
}},
[](auto&&) { std::cerr << "not here!" << std::endl; }
), ast.node);
), static_cast<const ctl::underlying_syntax_node_t&>(ast.node));
return value;
}
}

0 comments on commit a79ce33

Please sign in to comment.