Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Currently libprocess' defer and dispatch provide no overloads to invoke const member functions.
This has lead to a situation where often effectively const getters are not made const, purely to allow straight-forward usage of defer or dispatch, and leads to surprising API choices motivated only by limitations in low-level infrastructure (here: defer and dispatch).
We should augument defer and dispatch with overloads allowing to defer or dispatch invocation of const member functions, and tighten up interfaces of existing code where possible.