Boost logo

Boost :

From: Peter.Bienstman_at_[hidden]
Date: 2001-07-16 10:05:59


I naively assumed that if I write something like

  class_builder<BaseMaterial> BaseMaterial_(camfr, "BaseMaterial");
  BaseMaterial_.def(&BaseMaterial::operator(), "__call__");
  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, gregod at, cpdaniel at, john at