You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should Rpc, Procedure, Pub, Topic and friends have converting constructors? For instance, Rpc has an explicit constructor taking a string for the procedure name. By making the constructor non-explicit, it would make it more convenient to call RPCs.
For example, instead of
session->call(Rpc("foo"), yield);
You could simply do:
session->call("foo", yield);
However, as soon as you need to specify arguments or options, you'd have to use explicit construction:
session->call(Rpc("foo").withArgs({42}), yield);
The text was updated successfully, but these errors were encountered:
Should
Rpc
,Procedure
,Pub
,Topic
and friends have converting constructors? For instance,Rpc
has an explicit constructor taking a string for the procedure name. By making the constructor non-explicit, it would make it more convenient to call RPCs.For example, instead of
You could simply do:
However, as soon as you need to specify arguments or options, you'd have to use explicit construction:
The text was updated successfully, but these errors were encountered: