loki::Functor and boost::bind
loki::Functor に boost::bind を食わせる事ができる。はず…
struct Point { int x, y; Point(int ax, int ay) : x(ax), y(ay) {} void Add(const Point& rhs) { x += rhs.x; y += rhs.y; } }; Point pt(4, 5); loki::Functor<void, LOKI_TYPELIST_2<Point&, const Point&> adder = boost::bind(&Point::Add, _1, _2); adder(pt, pt); assert(pt.x == 8 && pt.y == 10);