Should we streamline WhiteBoard::get() error reporting? (was ACTSFW-56)
Original author Hadrien Benjamin Grasland @hgraslan.
Currently, WhiteBoard::get() reports errors in two different ways. It returns an ABORT status code, and it sets the destination pointer to nullptr
.
As a simpler alternative, WhiteBoard::get() could directly return a pointer to the target data, which is null in case where the data could not be fetched.
This would avoid duplication of error handling code, and make the interface simpler, at the cost of losing a bit of error reporting flexibility (multiple error codes) that we do not make use of at the moment, and probably don't need for a component as simple as the white board. As far as I can see, this would be an overall win.