$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Delfin Rojas (drojas_at_[hidden])
Date: 2008-02-11 02:18:35
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] 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