Boost logo

Boost Users :

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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net