also test Functor with Seq<>

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@668 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-06-01 13:08:14 +00:00
parent 44834aafa2
commit f05942295b

View file

@ -77,9 +77,14 @@ public:
Functor<void,Seq<bool &> > classFunctor2(&testClass,&TestClass::member); Functor<void,Seq<bool &> > classFunctor2(&testClass,&TestClass::member);
Functor<void,Seq<bool &> > functorCopy(function); Functor<void,Seq<bool &> > functorCopy(function);
Functor<void,Seq<bool &> > functorCopy2(function); Functor<void,Seq<bool &> > functorCopy2(function);
//TODO: //TODO:
//Functor<void,NullType> bindFunctor(BindFirst(function,testResult)); // BindFirst and Chainer
//Functor<void> chainFunctor(Chain(bindFunctor,bindFunctor));
Functor<void,Seq<bool &> > member_func(&testClass,&TestClass::member);
Functor<void,Seq<bool &> > free_func(&free_function);
Functor<void,Seq<bool &> > NULL_func;
Functor<void,Seq<bool &> > NULL_func0;
#endif #endif
testResult=false; testResult=false;
@ -115,7 +120,7 @@ public:
bool null4 = member_func != NULL_func; bool null4 = member_func != NULL_func;
#ifdef LOKI_DISABLE_TYPELIST_MACROS #ifndef LOKI_DISABLE_TYPELIST_MACROS
bool bindFunctorCompare = bindFunctor==bindFunctor2; bool bindFunctorCompare = bindFunctor==bindFunctor2;
bool chainFunctorCompare = chainFunctor==chainFunctor2; bool chainFunctorCompare = chainFunctor==chainFunctor2;
@ -133,11 +138,10 @@ public:
null3 && null3 &&
null4 null4
#ifndef LOKI_DISABLE_TYPELIST_MACROS #ifndef LOKI_DISABLE_TYPELIST_MACROS
;
#else
&& bindFunctorCompare && bindFunctorCompare
&& chainFunctorCompare; && chainFunctorCompare;
#else
;
#endif #endif
#else #else
@ -146,7 +150,7 @@ public:
#endif //LOKI_FUNCTORS_ARE_COMPARABLE #endif //LOKI_FUNCTORS_ARE_COMPARABLE
#ifdef LOKI_DISABLE_TYPELIST_MACROS #ifndef LOKI_DISABLE_TYPELIST_MACROS
testResult=false; testResult=false;
bindFunctor(); bindFunctor();