fix wrong default value handling
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@674 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
f026c57cd2
commit
ad77f8b3ef
1 changed files with 18 additions and 3 deletions
|
@ -37,10 +37,9 @@ namespace Loki
|
|||
///
|
||||
/// see also test/Function/FunctionTest.cpp (the modified test program from boost)
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template<class R = void()>
|
||||
struct Function : public Functor<R>
|
||||
{
|
||||
};
|
||||
struct Function;
|
||||
|
||||
|
||||
template<class R>
|
||||
|
@ -125,6 +124,19 @@ namespace Loki
|
|||
// repetitions
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template<>
|
||||
struct Function<>
|
||||
: public Loki::Functor<>
|
||||
{
|
||||
typedef Functor<> FBase;
|
||||
|
||||
template<class R2>
|
||||
Function(Function<void()> func)
|
||||
LOKI_FUNCTION_R2_CTOR_BODY
|
||||
|
||||
LOKI_FUNCTION_BODY
|
||||
};
|
||||
|
||||
template<class R,class P01>
|
||||
struct Function<R(P01)>
|
||||
: public Loki::Functor<R, Seq<P01> >
|
||||
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue