]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix compilation against newer clang, turns out we weren't quite c++ correct. Fix...
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 10 Sep 2012 17:30:42 +0000 (17:30 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 10 Sep 2012 17:30:42 +0000 (17:30 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2708 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/cachecleaner.hh

index 402213203a6d5daa6bd888f1c00c45e2a77e2ed9..0cb1cfcbe0aa8ad5eacfee8f7727b272c8bc5e27 100644 (file)
@@ -18,7 +18,7 @@ template <typename T> void pruneCollection(T& collection, unsigned int maxCached
 //  cout<<"Need to trim "<<toTrim<<" from cache to meet target!\n";
 
   typedef typename T::template nth_index<1>::type sequence_t;
-  sequence_t& sidx=collection.get<1>();
+  sequence_t& sidx=collection.template get<1>();
 
   unsigned int tried=0, lookAt, erased=0;
 
@@ -62,8 +62,8 @@ template <typename T> void pruneCollection(T& collection, unsigned int maxCached
 template <typename T> void moveCacheItemToFrontOrBack(T& collection, typename T::iterator& iter, bool front)
 {
   typedef typename T::template nth_index<1>::type sequence_t;
-  sequence_t& sidx=collection.get<1>();
-  typename sequence_t::iterator si=collection.project<1>(iter);
+  sequence_t& sidx=collection.template get<1>();
+  typename sequence_t::iterator si=collection.template project<1>(iter);
   if(front)
     sidx.relocate(sidx.begin(), si); // at the beginning of the delete queue
   else