Code was not yet finished:

struct MyComponent :
    public hpx::components::managed_component_base<MyComponent>
{
    MyComponent() : ...
    void my_function(const templated_argument<A> &arg) { ... }
    HPX_DEFINE_COMPONENT_ACTION(MyComponent, my_function);

    // OR
    template<typename T>
    void my_templated_function(const templated_argument<T> &arg) { ... }
    HPX_DEFINE_COMPONENT_ACTION(MyComponent, my_templated_function);

};


2015-06-11 16:40 GMT+02:00 Konstantin Kronfeldner <
[email protected]>:

> Hello,
>
> Can components have templated functions that can be called remotely? Or is
> that impossible?
> Or do you know another way to call a component function with templated
> arguments? Like so:
>
> struct MyComponent :
>     public hpx::components::managed_component_base<MyComponent>
> {
>     MyComponent() : ...
>     void my_function(const templated_argument<A> &arg) { ... }
>     HPX_DEFINE_COMPONENT_ACTION(MyComponent, my_function);
> void my_function(const templated_argument<A> &arg) { ... }
>     HPX_DEFINE_COMPONENT_ACTION(MyComponent, my_function);
>
> };
>
> Regards,
> Konstantin
>
_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to