diff --git a/include/loki/Function.h b/include/loki/Function.h index 905be0b..5f281c3 100755 --- a/include/loki/Function.h +++ b/include/loki/Function.h @@ -23,8 +23,15 @@ namespace Loki /// /// \ingroup FunctorGroup /// Allows a boost/TR1 like usage of Functor. + /// + /// \par Usage /// - /// e.g. Functor becomes Function + /// - free functions: e.g. \code Function f(&freeFunction); + /// \endcode + /// - member functions: e.g \code Function f(&object,&ObjectType::memberFunction); + /// \endcode + /// + /// see also test/Function/FunctionTest.cpp (the modified test program from boost) //////////////////////////////////////////////////////////////////////////////// template struct Function : public Functor diff --git a/test/Function/FunctionTest.cpp b/test/Function/FunctionTest.cpp index 763fad0..2cdd840 100755 --- a/test/Function/FunctionTest.cpp +++ b/test/Function/FunctionTest.cpp @@ -14,7 +14,6 @@ #include #define TEST_LOKI_FUNCTION - #ifndef TEST_LOKI_FUNCTION #include @@ -22,7 +21,6 @@ using namespace boost; #else - #include #include using namespace Loki;