commit | 2c163ee74791a1e793b96934c96ba31e06aaf092 | [log] [tgz] |
---|---|---|
author | Janis Danisevskis <jdanis@google.com> | Sun Oct 23 16:00:03 2016 +0100 |
committer | Janis Danisevskis <jdanis@google.com> | Thu Oct 27 09:45:32 2016 +0100 |
tree | 1ad03ea51ef1c486ad4ee322d9430289832971f7 | |
parent | d3ddf6221c317e39a540a51f504c55009e7bddda [diff] |
Make the wrapped Value of Status const accessible Test: compiles Change-Id: Ie5ceadd64a1b24edbc628ca421fcbf91a78272cf
diff --git a/include/hidl/Status.h b/include/hidl/Status.h index 59e4d65..6dde65c 100644 --- a/include/hidl/Status.h +++ b/include/hidl/Status.h
@@ -153,7 +153,7 @@ public: Return(T v) : val{v} {} Return(Status s) : status(s) {} - operator T() { return val; } + operator T() const { return val; } const Status& getStatus() const { return status; }