commit | 92e710323451892b95a37bd394c617839cb5fd98 | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Fri Mar 08 20:29:02 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 08 20:29:02 2024 +0000 |
tree | f293d2f2dfc6e789dd1eafabbee3f1b46d63e754 | |
parent | e4548430290ecd3bd3a2ca6bc80ec05b13ad047b [diff] |
pw_allocator: Fix move semantics for UniquePtr This CL addresses three small issues related to UniquePtr: * The move-assignment operator was not correctly returning `*this`. A test has been added for this case. * The default copy-constructor and copy-assignment operator were not being implicitly deleted, since the templated move-constructor and move-assignment operator did not match the default ones. They have been explicitly deleted. * An incorrect use of UniquePtr in the size_report that relied on copy-assignment has been fixed. Change-Id: I413195066b5b9593899970b1c880891abd44ceae Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/195470 Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: Aaron Green <aarongreen@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.