Date: 2001-07-16 10:05:59
I naively assumed that if I write something like
class_builder<BaseMaterial> BaseMaterial_(camfr, "BaseMaterial");
class_builder<Material> Material_(camfr, "Material");
, I would automatically get the __call__ operator available in
Material, as it derives from BaseMaterial.
However, this does not seem to work, I have to explicitly define
operator() in Material as well, in order to get it to work.
Am I missing something here? It would be really useful if one did not
have to manually reregister functions in derived classes.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk