C++ (Qt)#include "alokifunctor.h" void a() { qDebug() << "a()";} class Base {public: const QString test(const QString &txt) {return txt;}}; int main(int, char**){ALoki::Functor<> functor(&a);functor(); Base *obj = new Base;typedef const QString(Base::*test)(const QString&);ALoki::Functor<const QString, ALoki::TypeSequence<const QString&> > functor1(obj, &Base::test); delete obj; qDebug() << functor1("tratata"); qDebug() << obj->test("is not deleted!!!"); return 0;}