msvc8 fix
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@809 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
4fc70080d3
commit
e53177ef92
1 changed files with 6 additions and 1 deletions
|
@ -391,9 +391,14 @@ bool testCache()
|
||||||
|
|
||||||
#include <loki/SPCachedFactory.h>
|
#include <loki/SPCachedFactory.h>
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
class SmartPointer_OneTArg : public SmartPointer<T>
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
bool testSmartPointer()
|
bool testSmartPointer()
|
||||||
{
|
{
|
||||||
typedef CachedFactory< AbstractProduct, int, NullType, SmartPointer, AlwaysCreate, EvictRandom, SimpleStatisticPolicy > CFactory;
|
typedef CachedFactory< AbstractProduct, int, NullType, SmartPointer_OneTArg, AlwaysCreate, EvictRandom, SimpleStatisticPolicy > CFactory;
|
||||||
CFactory factory;
|
CFactory factory;
|
||||||
factory.Register(0, createProductNull);
|
factory.Register(0, createProductNull);
|
||||||
for(int i=0;i<500;++i)
|
for(int i=0;i<500;++i)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue