diff options
author | Wyatt Hepler <hepler@google.com> | 2020-06-22 11:21:45 -0700 |
---|---|---|
committer | CQ Bot Account <commit-bot@chromium.org> | 2020-07-01 01:37:27 +0000 |
commit | e2cbadfa0cd342abb37ce5a70d4e019fb2b2e790 (patch) | |
tree | 5634bcc53aea3055154397f65b6da2917737dd44 /pw_cpu_exception | |
parent | d3d1cb075535dc3bece256f8cbbf960d3f2bf72e (diff) | |
download | pigweed-e2cbadfa0cd342abb37ce5a70d4e019fb2b2e790.tar.gz |
pw_span: Switch from pw::span to std::span
Replace pw::span with std::span and "pw_span/span.h" with <span>
throughout the codebase.
Change-Id: Ib1fa873168b6093794e861611d750fcad6285d6c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12801
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Diffstat (limited to 'pw_cpu_exception')
-rw-r--r-- | pw_cpu_exception/public/pw_cpu_exception/cpu_exception.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pw_cpu_exception/public/pw_cpu_exception/cpu_exception.h b/pw_cpu_exception/public/pw_cpu_exception/cpu_exception.h index c01d25f55..b9b76f22c 100644 --- a/pw_cpu_exception/public/pw_cpu_exception/cpu_exception.h +++ b/pw_cpu_exception/public/pw_cpu_exception/cpu_exception.h @@ -28,9 +28,9 @@ // some part of your application. #include <cstdint> +#include <span> #include "pw_preprocessor/compiler.h" -#include "pw_span/span.h" #include "pw_string/string_builder.h" namespace pw::cpu_exception { @@ -40,7 +40,7 @@ struct CpuState; // Gets raw CPU state as a single contiguous block of data. The particular // contents will depend on the specific backend and platform. -span<const uint8_t> RawFaultingCpuState(const CpuState& cpu_state); +std::span<const uint8_t> RawFaultingCpuState(const CpuState& cpu_state); // Writes CPU state as a formatted string to a string builder. // NEVER depend on the format of this output. This is exclusively FYI human |