diff --git a/include/loki/Function.h b/include/loki/Function.h index cd162e5..d98c9b8 100755 --- a/include/loki/Function.h +++ b/include/loki/Function.h @@ -37,10 +37,9 @@ namespace Loki /// /// see also test/Function/FunctionTest.cpp (the modified test program from boost) //////////////////////////////////////////////////////////////////////////////// + template - struct Function : public Functor - { - }; + struct Function; template @@ -125,6 +124,19 @@ namespace Loki // repetitions //////////////////////////////////////////////////////////////////////////////// + template<> + struct Function<> + : public Loki::Functor<> + { + typedef Functor<> FBase; + + template + Function(Function func) + LOKI_FUNCTION_R2_CTOR_BODY + + LOKI_FUNCTION_BODY + }; + template struct Function : public Loki::Functor > @@ -354,6 +366,9 @@ namespace Loki #endif // $Log$ +// Revision 1.10 2006/06/09 12:04:40 syntheticpp +// fix wrong default value handling +// // Revision 1.9 2006/02/26 23:39:59 syntheticpp // guard including //