model: Fix original Contest Store to compile in new environment
diff --git a/model/cs/ndn-content-store.hpp b/model/cs/ndn-content-store.hpp
index e28eea0..e007b32 100644
--- a/model/cs/ndn-content-store.hpp
+++ b/model/cs/ndn-content-store.hpp
@@ -36,9 +36,6 @@
namespace ndn {
-class Data;
-class Interest;
-class Name;
class ContentStore;
/**
@@ -90,7 +87,7 @@
GetContentStore();
private:
- Ptr<ContentStore> m_cs; ///< \brief content store to which entry is added
+ Ptr<ContentStore> m_cs; ///< \brief content store to which entry is added
shared_ptr<const Data> m_data; ///< \brief non-modifiable Data
};
@@ -211,4 +208,14 @@
} // namespace ndn
} // namespace ns3
+#include <boost/functional/hash.hpp>
+namespace boost {
+inline std::size_t
+hash_value(const ::ndn::name::Component component)
+{
+ return boost::hash_range(component.wireEncode().wire(),
+ component.wireEncode().wire() + component.wireEncode().size());
+}
+}
+
#endif // NDN_CONTENT_STORE_H