Make code compilable using clang compiler
Apparently, clang has problems with BOOST_FOREACH and intrusive containers
diff --git a/model/ccnx-content-store-impl.h b/model/ccnx-content-store-impl.h
index e2ee632..9619341 100644
--- a/model/ccnx-content-store-impl.h
+++ b/model/ccnx-content-store-impl.h
@@ -92,9 +92,12 @@
void
CcnxContentStoreImpl<Container>::Print (std::ostream &os) const
{
- BOOST_FOREACH (const typename Container::parent_trie &item, this->getPolicy ())
+ for (typename Container::policy_container::const_iterator item = this->getPolicy ().begin ();
+ item != this->getPolicy ().end ();
+ item++)
+ // BOOST_FOREACH (const typename Container::parent_trie &item, this->getPolicy ())
{
- os << item.payload ()->GetName () << std::endl;
+ os << item->payload ()->GetName () << std::endl;
}
}