clock/clock_t are not in std:: on msvc, fix wrong type of pure virtual functions
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@787 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
a62f5f4078
commit
b072da9f73
1 changed files with 6 additions and 10 deletions
|
@ -38,15 +38,11 @@
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
namespace std
|
#else
|
||||||
{
|
|
||||||
typedef ::clock_t clock_t;
|
|
||||||
int clock(){ return ::clock();}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using std::clock_t;
|
using std::clock_t;
|
||||||
using std::clock;
|
using std::clock;
|
||||||
|
#endif
|
||||||
|
|
||||||
using std::bind2nd;
|
using std::bind2nd;
|
||||||
using std::equal_to;
|
using std::equal_to;
|
||||||
using std::cout;
|
using std::cout;
|
||||||
|
@ -391,7 +387,7 @@ namespace Loki
|
||||||
|
|
||||||
// this function is implemented in Cache and redirected
|
// this function is implemented in Cache and redirected
|
||||||
// to the Storage Policy
|
// to the Storage Policy
|
||||||
virtual void remove(DT key)=0;
|
virtual void remove(DT const key)=0;
|
||||||
|
|
||||||
// LRU Eviction policy
|
// LRU Eviction policy
|
||||||
void evict()
|
void evict()
|
||||||
|
@ -456,7 +452,7 @@ namespace Loki
|
||||||
|
|
||||||
// this function is implemented in Cache and redirected
|
// this function is implemented in Cache and redirected
|
||||||
// to the Storage Policy
|
// to the Storage Policy
|
||||||
virtual void remove(DT key)=0;
|
virtual void remove(DT const key)=0;
|
||||||
|
|
||||||
// LRU with Aging Eviction policy
|
// LRU with Aging Eviction policy
|
||||||
void evict()
|
void evict()
|
||||||
|
@ -505,7 +501,7 @@ namespace Loki
|
||||||
}
|
}
|
||||||
|
|
||||||
// Implemented in Cache and redirected to the Storage Policy
|
// Implemented in Cache and redirected to the Storage Policy
|
||||||
virtual void remove(DT key)=0;
|
virtual void remove(DT const key)=0;
|
||||||
|
|
||||||
// Random Eviction policy
|
// Random Eviction policy
|
||||||
void evict()
|
void evict()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue