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:
syntheticpp 2007-02-25 14:34:30 +00:00
parent 4fc70080d3
commit e53177ef92

View file

@ -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)