forked from github/verilator
Fix AstNode::forall
return type (#3559)
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
This commit is contained in:
parent
db5fdfb0ee
commit
33e2acfe61
@ -2043,7 +2043,7 @@ public:
|
||||
|
||||
// Same as above, but for 'const' nodes
|
||||
template <typename T_Node>
|
||||
void forall(std::function<bool(const T_Node*)> p) const {
|
||||
bool forall(std::function<bool(const T_Node*)> p) const {
|
||||
static_assert(checkTypeParameter<T_Node>(), "Invalid type parameter 'T_Node'");
|
||||
return predicateImpl<const T_Node, /* Default: */ true>(this, p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user