Fix AstNode::exists return type

This commit is contained in:
Geza Lore 2022-08-19 13:22:06 +01:00
parent 33e2acfe61
commit 90d22cbec6

View File

@ -2026,7 +2026,7 @@ public:
// Same as above, but for 'const' nodes
template <typename T_Node>
void exists(std::function<bool(const T_Node*)> p) const {
bool exists(std::function<bool(const T_Node*)> p) const {
static_assert(checkTypeParameter<T_Node>(), "Invalid type parameter 'T_Node'");
return predicateImpl<const T_Node, /* Default: */ false>(this, p);
}