commit | b7fe2dba46b00c9e7259a070a1c0c16661f7e139 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Wed Jul 11 10:45:05 2018 -0700 |
committer | Stephen Hines <srhines@google.com> | Wed Jul 11 10:45:05 2018 -0700 |
tree | 6ea5aa641d420c567c425a017434c30131aaf5d6 | |
parent | d4c0be8ed437ee2198a0d5d8561093ab23e51c2e [diff] [blame] |
Types and type qualifiers have to be to the right of "operator". Bug: http://b/110779387 Test: Builds with new toolchain. Change-Id: I557ef6f8117f181a3d7bf60ee31606a8331d0ee9
diff --git a/libnetdutils/include/netdutils/MemBlock.h b/libnetdutils/include/netdutils/MemBlock.h index 38ca19a..ce8ac02 100644 --- a/libnetdutils/include/netdutils/MemBlock.h +++ b/libnetdutils/include/netdutils/MemBlock.h
@@ -53,7 +53,7 @@ Slice get() const noexcept { return Slice(mData.get(), mLen); } // Implicit cast to Slice. - const operator Slice() const noexcept { return get(); } + operator const Slice() const noexcept { return get(); } private: std::unique_ptr<uint8_t[]> mData;