Hello,

i am trying to write a client side representation class for a component
with constructor arguments to pass to the component constructor.

I did use as base the example in the documentation:
https://stellar-group.github.io/hpx/docs/html/hpx/manual/components/components_client.html
which only uses the default constructor.

And then tried adding a extra argument:

some_component_client(hpx::future<hpx::id_type> && id, size_t argument)
          : base_type(std::move(id), argument)
        {}

as constructor.

And tried to create a instance with
hpx::new_<some_component_client>(hpx::find_here(), 10);
Which fails because client_base constructor only allows one argument.

I had a look at the source of client_base and i am guessing that
static Derived create(id_type const& targetgid, Ts&&... vs)
could be the function i need to use, but i have no idea how.

Any idea how i get this working?

Best regards
Tobias Gauweiler
_______________________________________________
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to