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>
|
||||
|
||||
template<class T>
|
||||
class SmartPointer_OneTArg : public SmartPointer<T>
|
||||
{
|
||||
};
|
||||
|
||||
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;
|
||||
factory.Register(0, createProductNull);
|
||||
for(int i=0;i<500;++i)
|
||||
|
|
Loading…
Add table
Reference in a new issue