PolicyManager: Specify the full Policy method type on the PM interface.
This patch replaces the template parameter "typename T" used to pass
the policy_method with its actual type, which can be inferred from
the remaining types, removing this template parameter.
This makes the C++ error messages more meaningful when the wrong
parameters are passed to a policy request.
BUG=None
TEST=Build. Manual test passing the wrong type for "result" and getting a meaningful error message.
Change-Id: I98cda8782a0db8642f1e6636af286a97a2df56a3
Reviewed-on: https://chromium-review.googlesource.com/193675
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
2 files changed