Refactored nested_trait to handle element hierarchy

This commit is contained in:
Bartek Kryza
2022-02-17 23:41:08 +01:00
parent 6afd522146
commit 97bf705047
10 changed files with 51 additions and 33 deletions

View File

@@ -66,4 +66,9 @@ const std::vector<relationship> &element::relationships() const
}
void element::append(const element &e) { decorated_element::append(e); }
bool operator==(const element &l, const element &r)
{
return l.full_name(false) == r.full_name(false);
}
}