
9 Nov
2009
9 Nov
'09
11:38 a.m.
Hello. I think this code should work (or convince me why not): #include <boost/function.hpp> class A {}; class B : public A {}; typedef boost::function<void (A &)> F; void hello(B &) { } int main() { F f(&hello); } Since A & can accept Bs &, should this code work?