From: Bert Hubert Date: Wed, 15 Mar 2006 18:18:45 +0000 (+0000) Subject: use hashed indexes if available X-Git-Tag: pdns-2.9.20~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1676d61a6f7d96030e8959e506e97d3373d5722f;p=pdns use hashed indexes if available git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@586 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/recursor_cache.hh b/pdns/recursor_cache.hh index 13610776b..4582b6e56 100644 --- a/pdns/recursor_cache.hh +++ b/pdns/recursor_cache.hh @@ -9,8 +9,12 @@ #undef L #include #include + #include +#include +#if BOOST_VERSION >= 103300 #include +#endif #define L theL() using namespace boost; @@ -81,7 +85,11 @@ private: typedef multi_index_container< CacheEntry, indexed_by < +#if BOOST_VERSION >= 103300 hashed_unique >, +#else + ordered_unique >, +#endif ordered_non_unique > > > cache_t;