commit | 999adb191f8f512b524f0a65bd0662ac7854ef20 | [log] [tgz] |
---|---|---|
author | Jesse Chen <chenjesse@google.com> | Thu Dec 19 16:42:40 2024 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 19 16:42:40 2024 -0800 |
tree | a4b89b4c43f0172a33c182d1c2285558a862f688 | |
parent | cf93680d3cb6eb136748cf7460013419d9692493 [diff] |
pw_containers: Add explicit constexpr constructors for deques/queues Current default constructors do not actually permit constexpr construction of objects, therefore queues/deques are currently allocated in .bss - since constinit construction will allocate the entire container in .data instead, potentially unexpectedly increasing the ROM size of users, add a separate constexpr constructor instead of changing the default constructor to be constexpr. Change-Id: I5c7333a0adc09c354f330ea39dc1746f43b79f8f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/250434 Docs-Not-Needed: Jesse Chen <chenjesse@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Jesse Chen <chenjesse@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/.