commit | 65b35f7d6df085918d47de7d49c1e5b0db70ec8f | [log] [tgz] |
---|---|---|
author | Dennis Kormalev <denk@google.com> | Tue Jun 21 14:19:46 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 21 17:43:14 2022 +0000 |
tree | b088742a38ebcdf71f1e6570540a25315bfa8fc5 | |
parent | 420771aa12880768c891105d55fcfe8908fd37c3 [diff] |
pw_stream: 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: I4bcb6a924c0f1d4a22ef41286921bc006bc91f60 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98905 Pigweed-Auto-Submit: Dennis Kormalev <denk@google.com> Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.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/.