chaincodelabs / libmultiprocess

C++ library and code generator making it easy to call functions and reference objects in different processes
MIT License
29 stars 20 forks source link

Add ReadDestTemp function to make it easier to call ReadField with less boilerplate #81

Closed ryanofsky closed 2 years ago

ryanofsky commented 2 years ago

Add RestDestTemp function to simplify ReadField calls that just want to read a field into a new object.

Instead of requiring ReadField callers to construct the object in advance and pass it with ReadDestValue, or to write a custom emplace function and pass it with ReadDestEmplace, they can use RestDestTemp to make ReadField just construct a temporary object internally that can be moved from.

Add test coverage for this. Also add missing documentation comments for ReadDestEmplace and ReadDestValue classes.