model: Some compilers got confused with "typedef policy policy". Renaming the typedefed name to policy_base
Closes #15
diff --git a/model/cs/content-store-with-freshness.h b/model/cs/content-store-with-freshness.h
index c15ded6..9f394e3 100644
--- a/model/cs/content-store-with-freshness.h
+++ b/model/cs/content-store-with-freshness.h
@@ -105,7 +105,7 @@
if (freshness.size () > 0)
{
- Time nextStateTime = freshness_policy_container::policy::get_freshness (&(*freshness.begin ()));
+ Time nextStateTime = freshness_policy_container::policy_base::get_freshness (&(*freshness.begin ()));
if (m_scheduledCleaningTime.IsZero () || // if not yet scheduled
m_scheduledCleaningTime > nextStateTime) // if new item expire sooner than already scheduled
@@ -143,7 +143,7 @@
{
typename freshness_policy_container::iterator entry = freshness.begin ();
- if (freshness_policy_container::policy::get_freshness (&(*entry)) <= now) // is the record stale?
+ if (freshness_policy_container::policy_base::get_freshness (&(*entry)) <= now) // is the record stale?
{
super::erase (&(*entry));
}