Fixed bug in hessian_equal in testConcurrentBatchFilter

release/4.3a0
Richard Roberts 2013-04-09 19:53:59 +00:00
parent ed90b00edf
commit b68fee7b00
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ bool hessian_equal(const NonlinearFactorGraph& expected, const NonlinearFactorGr
FastSet<Key> actualKeys = actual.keys();
// Verify the set of keys in both graphs are the same
if(!std::equal(expectedKeys.begin(), expectedKeys.end(), actualKeys.begin()))
if(expectedKeys.size() != actualKeys.size() || !std::equal(expectedKeys.begin(), expectedKeys.end(), actualKeys.begin()))
return false;
// Create an ordering