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
Currently IPC method return types have to be default constructible, and can be copied or moved unnecessarily when ReadField is called. It would be better to construct return values in place to stop requiring default constructors, simplify code generation, and stop creating temporary copies unnecessarily.
Way to do this would be to change clientInvoke function to return an actual value instead of void, so generated client method code would change from:
Currently IPC method return types have to be default constructible, and can be copied or moved unnecessarily when
ReadField
is called. It would be better to construct return values in place to stop requiring default constructors, simplify code generation, and stop creating temporary copies unnecessarily.Way to do this would be to change
clientInvoke
function to return an actual value instead ofvoid
, so generated client method code would change from:to:
return clientInvoke(..., MakeClientReturn<M1::Result>());
This should work with the existing
CustomReadField
functions butReadField
will have to be updated to not return void:And a new
ReadDest
helper type will be required to pass intoReadField
:The text was updated successfully, but these errors were encountered: