|
Boost Users : |
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2006-04-04 05:11:37
Marco Correia wrote:
> Hi,
>
> Thanks for the ideas, however I do not understand how typeid may be used to
> solve this. How do I instantiate my deallocator with information that comes
> from typeid?
Well, you can use typeid() to figure out the type of the object.
I don't know why you loose the type information, but it's your job to
find it again, no matter what approach you use.
I can't comment more specific with the infor you gave.
-Thorsten
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