commit | 3950de4195d7606a741e7d0c89e9d01058900652 | [log] [tgz] |
---|---|---|
author | Dennis Kormalev <denk@google.com> | Tue Jun 21 14:18:57 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 21 17:33:34 2022 +0000 |
tree | 2c87c7dca605e906ac06ec5c3bd468c6d50b3d7f | |
parent | e89e39267e07ab5a07ad1c801f471946f3792379 [diff] |
pw_bytes: Use c++20-friendly pointer operations on spans With C++20 enabled pigweed uses std::span from the standard library. It doesn't specify they iterator type and it is not always possible to cast it to the pointer directly. We need to use .data() instead. Change-Id: I7ae7c5a7355de14e0cc13fce18e575c22dfdac62 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98903 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Dennis Kormalev <denk@google.com> Reviewed-by: Rob Mohr <mohrr@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/.