Hi all, I was trying to experiment with object-oriented programming in HPX, but I could not find much information in the documentation.
More specifically, I want to define two components A and B, with B a subclass of A. A defines a method `fun()`, which is overridden by B. For each component, I register a corresponding action, resulting in `A_fun_action` and `B_fun_action`. Is it possible to remotely execute `A_fun_action` on a B component (more precisely, on its `hpx::id_type`, which is essentially a pointer), in such a way that it correctly calls the method `B::fun()`, as we would expect in plain C++ ? You can find here [1] an (unsuccessful) minimal example which might better convey what I am trying to achieve than this short message. It works fine with A but fails to compile when I try to use B. Thanks in advance for your comments. Best regards, Jean-Loup PS: BTW, if there is enough interest, I could cross-post this kind of questions to stackoverflow.com, which has arguably much more visibility than this mailing-list. This could make it easier for people to get started with HPX in the future. A quick search currently lists only 9 questions with the [hpx] tag. [1] https://gist.github.com/Element-126/c52fc9bcfb981283c7527ccd1b5f987 f _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
