
11 Feb
2008
11 Feb
'08
7:18 a.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Frank Mori Hess
<snap>
I think you might need to call factory like "this->factory()"
Notice that according to Paul's original message the right factory (the one in B) is being called. Output: $ ./mytest I am B worker I am in the A.threadcontroller() method Factory for B class called <--- The right factory is called, a B* is returned I am B worker <--- Calling worker() on that pointer calls B::worker(), definitely a B* Calling A operator() <--- Calling operator()calls A::operator(), why? I am A worker -delfin