Many corrections
diff --git a/model/sync-diff-state-container.h b/model/sync-diff-state-container.h
index 6e98aa4..2aa6d2c 100644
--- a/model/sync-diff-state-container.h
+++ b/model/sync-diff-state-container.h
@@ -33,7 +33,7 @@
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/sequenced_index.hpp>
// #include <boost/multi_index/random_access_index.hpp>
-// #include <boost/multi_index/member.hpp>
+#include <boost/multi_index/member.hpp>
#include <boost/multi_index/mem_fun.hpp>
namespace mi = boost::multi_index;
@@ -63,6 +63,7 @@
/// @cond include_hidden
struct sequenced { };
+struct timed { };
/// @endcond
/**
@@ -87,6 +88,37 @@
{
};
+struct DigestTime
+{
+ DigestTime (DigestConstPtr digest, const TimeAbsolute &time)
+ : m_digest (digest)
+ , m_time (time)
+ {
+ }
+
+ DigestConstPtr m_digest;
+ TimeAbsolute m_time;
+};
+
+struct UnknownDigestContainer : public mi::multi_index_container<
+ DigestTime,
+ mi::indexed_by<
+ mi::hashed_unique<
+ mi::tag<hashed>,
+ mi::member<DigestTime, DigestConstPtr, &DigestTime::m_digest>,
+ DigestPtrHash,
+ DigestPtrEqual
+ >
+ ,
+ mi::ordered_non_unique<
+ mi::tag<timed>,
+ mi::member<DigestTime, TimeAbsolute, &DigestTime::m_time>
+ >
+ >
+ >
+{
+};
+
} // Sync
#endif // SYNC_DIFF_STATE_CONTAINER_H