commit | 44ab623ccf386f0e470bdc6aa22f261b7dc047cd | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Nov 22 16:28:24 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Sat Dec 03 00:09:55 2016 +0000 |
tree | 91a22cf17a6b4a2095c94f4ed5b55bb1afc2ee37 | |
parent | 3079100878a2595be644d866e67c12a9de620fd5 [diff] |
Convert (by copying) hidl_array from and to std::array. * For example, hidl_array<T, 2, 3> can be converted to std::array<std::array<T, 3>, 2>. * Uses operator= for copying. * Also uses operator= when initializing an hidl_array (instead of memcpy'ing). This fixes potential memory issues for hidl_array<hidl_string>, for example. Bug: 32883329 Test: libhidl_test Change-Id: Idf7d080433aaed2c585fd4875f3411e5544a9e72