Skip to content
Snippets Groups Projects
Commit 6a561cdc authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Use Constraint::isSatisfied instead of projecting configurations

parent 94c3d582
No related branches found
No related tags found
No related merge requests found
......@@ -72,8 +72,7 @@ namespace hpp {
// TODO: This is not the most efficient way. We should
// compute the value of the constraint instead of apllying
// the constraint.
Configuration_t cfg = config;
return configConstraint()->apply(cfg) && ( cfg == config );
return configConstraint()->isSatisfied (config);
}
std::ostream& Node::print (std::ostream& os) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment