Debugging and test suites of FullState and DiffState
Digest checking is still missing from unit tests
diff --git a/model/sync-state-leaf-container.h b/model/sync-state-leaf-container.h
index 8f44fc9..2c7e8b9 100644
--- a/model/sync-state-leaf-container.h
+++ b/model/sync-state-leaf-container.h
@@ -24,10 +24,11 @@
#define SYNC_STATE_LEAF_CONTAINER
#include "sync-leaf.h"
+#include "sync-name-info.h"
#include <boost/multi_index_container.hpp>
// #include <boost/multi_index/tag.hpp>
-// #include <boost/multi_index/ordered_index.hpp>
+#include <boost/multi_index/ordered_index.hpp>
// #include <boost/multi_index/composite_key.hpp>
#include <boost/multi_index/hashed_index.hpp>
// #include <boost/multi_index/random_access_index.hpp>
@@ -48,6 +49,7 @@
};
struct hashed { };
+struct ordered { };
/**
* \ingroup sync
@@ -61,7 +63,11 @@
mi::tag<hashed>,
mi::const_mem_fun<Leaf, const NameInfo&, &Leaf::getInfo>,
NameInfoHash
- >
+ >,
+ mi::ordered_unique<
+ mi::tag<ordered>,
+ mi::const_mem_fun<Leaf, const NameInfo&, &Leaf::getInfo>
+ >
>
>
{