From 6a561cdc1593dc7da7b0732f03d755e91f18280a Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Tue, 19 Aug 2014 11:12:59 +0200
Subject: [PATCH] Use Constraint::isSatisfied instead of projecting
 configurations

---
 src/graph/node.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/graph/node.cc b/src/graph/node.cc
index db99a00..0746b5e 100644
--- a/src/graph/node.cc
+++ b/src/graph/node.cc
@@ -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
-- 
GitLab