Skip to content
Snippets Groups Projects
Commit 0da76c69 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Fix stateAIncludedInStateB

parent 9a6abfb3
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,9 @@ namespace hpp {
{
const NumericalConstraints_t& Ancs = A->numericalConstraints();
const NumericalConstraints_t& Bncs = B->numericalConstraints();
for (NumericalConstraints_t::const_iterator _nc = Ancs.begin();
_nc != Ancs.end(); ++_nc)
if (std::find (Bncs.begin(), Bncs.end(), *_nc) == Bncs.end())
for (NumericalConstraints_t::const_iterator _nc = Bncs.begin();
_nc != Bncs.end(); ++_nc)
if (std::find (Ancs.begin(), Ancs.end(), *_nc) == Ancs.end())
return false;
return true;
}
......
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