From: bert hubert Date: Wed, 20 Jan 2016 14:49:37 +0000 (+0100) Subject: clarifying comment X-Git-Tag: dnsdist-1.0.0-alpha2~48^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7687f95d7700145a002aa48157cc10cb36a42778;p=pdns clarifying comment --- diff --git a/pdns/cachecleaner.hh b/pdns/cachecleaner.hh index 0cb1cfcbe..dad2ebfdf 100644 --- a/pdns/cachecleaner.hh +++ b/pdns/cachecleaner.hh @@ -58,7 +58,7 @@ template void pruneCollection(T& collection, unsigned int maxCached sidx.erase(iter, eiter); // just lob it off from the beginning } - +// note: this expects iterator from first index, and sequence MUST be second index! template void moveCacheItemToFrontOrBack(T& collection, typename T::iterator& iter, bool front) { typedef typename T::template nth_index<1>::type sequence_t;