19 Nov
2010
19 Nov
'10
8:35 a.m.
Hi, Is boost::apply supposed to work with member functions? #include <boost/bind.hpp> #include <boost/bind/apply.hpp> struct foo { void bar() { } }; void quux(foo* fp) { } int main(int argc, char* argv[]) { foo f; foo* fp(&f); // Works as expected boost::bind(boost::apply<void>(), _1, fp)(&quux); // Fails to compile boost::bind(boost::apply<void>(), _1, fp)(&foo::bar); } -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] <demo> 2010 Tore Halvorsen || +052 0553034554