summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-05-31 17:13:51 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-05-31 17:13:51 +0000
commit00995f665ef360f520f4fd3f19bfab9d4078208c (patch)
tree25a0b02dd536fedea4f75ff77412cae07201abb1
parent9d24b6731ea24fa81cf76ff88ba0a5c0454237b0 (diff)
downloadvdr-plugin-live-00995f665ef360f520f4fd3f19bfab9d4078208c.tar.gz
vdr-plugin-live-00995f665ef360f520f4fd3f19bfab9d4078208c.tar.bz2
- correct file attributes
-rwxr-xr-xcache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 4b78ee5..644976a 100755
--- a/cache.h
+++ b/cache.h
@@ -4,6 +4,7 @@
#include <cassert>
#include <algorithm>
#include <ctime>
+#include <functional>
#include <list>
#include <map>
#include <utility>
@@ -18,7 +19,7 @@
namespace vgstools {
-template< typename TKey, typename TValue >
+template< typename TKey, typename TValue, typename KeyComp = std::less< TKey > >
class cache
{
public:
@@ -40,7 +41,7 @@ private:
typedef std::pair< key_type, ptr_type > value_type;
typedef std::list< value_type > ValueList;
- typedef std::map< key_type, typename ValueList::iterator > KeyMap;
+ typedef std::map< key_type, typename ValueList::iterator, KeyComp > KeyMap;
public:
cache( size_t maxWeight )