add GTSAM_NO_ENFORCE_ORDERING flag
							parent
							
								
									9a9b642d5d
								
							
						
					
					
						commit
						38b89db219
					
				| 
						 | 
				
			
			@ -30,11 +30,13 @@ template class Factor<Index>;
 | 
			
		|||
 | 
			
		||||
/* ************************************************************************* */
 | 
			
		||||
void IndexFactor::assertInvariants() const {
 | 
			
		||||
  Base::assertInvariants();
 | 
			
		||||
	Base::assertInvariants();
 | 
			
		||||
#ifndef NDEBUG
 | 
			
		||||
#ifndef GTSAM_NO_ENFORCE_ORDERING
 | 
			
		||||
  std::set<Index> uniqueSorted(keys_.begin(), keys_.end());
 | 
			
		||||
  assert(uniqueSorted.size() == keys_.size() && std::equal(uniqueSorted.begin(), uniqueSorted.end(), keys_.begin()));
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* ************************************************************************* */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue