astyle --style=ansi

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@663 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-06-01 12:35:08 +00:00
parent 50d35c6196
commit 2a5dc20f8a

View file

@ -31,7 +31,8 @@ void free_function(bool &result)
class FunctorTest : public Test
{
public:
FunctorTest() : Test("Functor.h") {}
FunctorTest() : Test("Functor.h")
{}
virtual void execute(TestResult &result)
{
@ -46,6 +47,7 @@ public:
#ifndef LOKI_DISABLE_TYPELIST_MACROS
Functor<void,LOKI_TYPELIST_1(bool &)> function(testFunction);
Functor<void,LOKI_TYPELIST_1(bool &)> function2(testFunction);
Functor<void,LOKI_TYPELIST_1(bool &)> functor(testFunctor);
@ -66,6 +68,7 @@ public:
Functor<void,LOKI_TYPELIST_1(bool &)> NULL_func;
Functor<void,LOKI_TYPELIST_1(bool &)> NULL_func0;
#else
Functor<void,Seq<bool &> > function(testFunction);
Functor<void,Seq<bool &> > function2(testFunction);
Functor<void,Seq<bool &> > functor(testFunctor);
@ -113,6 +116,7 @@ public:
#ifdef LOKI_DISABLE_TYPELIST_MACROS
bool bindFunctorCompare = bindFunctor==bindFunctor2;
bool chainFunctorCompare = chainFunctor==chainFunctor2;
#endif
@ -131,16 +135,19 @@ public:
#ifndef LOKI_DISABLE_TYPELIST_MACROS
;
#else
&& bindFunctorCompare
&& chainFunctorCompare;
#endif
#else
bool compare=true;
#endif //LOKI_FUNCTORS_ARE_COMPARABLE
#ifdef LOKI_DISABLE_TYPELIST_MACROS
testResult=false;
bindFunctor();
bool bindFunctorResult=testResult;
@ -155,6 +162,7 @@ public:
//TODO!
r=functionResult && functorResult && classFunctorResult && functorCopyResult && compare;
#endif
testAssert("Functor",r,result);
std::cout << '\n';
@ -190,7 +198,8 @@ private:
result=true;
}
};
} functorTest;
}
functorTest;
bool FunctorTest::testResult;