change documentation of function

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@365 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2005-11-16 13:36:38 +00:00
parent aa3a852a7d
commit d26ecb6716
2 changed files with 8 additions and 3 deletions

View file

@ -23,8 +23,15 @@ namespace Loki
///
/// \ingroup FunctorGroup
/// Allows a boost/TR1 like usage of Functor.
///
/// \par Usage
///
/// e.g. Functor<int,LOKI_TYPELIST_2(int,int)> becomes Function<int(int,int)>
/// - free functions: e.g. \code Function<int(int,int)> f(&freeFunction);
/// \endcode
/// - member functions: e.g \code Function<int()> f(&object,&ObjectType::memberFunction);
/// \endcode
///
/// see also test/Function/FunctionTest.cpp (the modified test program from boost)
////////////////////////////////////////////////////////////////////////////////
template<class R = void()>
struct Function : public Functor<R>

View file

@ -14,7 +14,6 @@
#include <boost/test/minimal.hpp>
#define TEST_LOKI_FUNCTION
#ifndef TEST_LOKI_FUNCTION
#include <boost/function.hpp>
@ -22,7 +21,6 @@ using namespace boost;
#else
#include <boost/ref.hpp>
#include <loki/Function.h>
using namespace Loki;