commit | 2bc2d9b4ea8fe26d5ff8b4a19b3886b64a24635e | [log] [tgz] |
---|---|---|
author | Dennis Kormalev <denk@google.com> | Tue Jun 14 18:47:31 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 20 14:21:15 2022 +0000 |
tree | 78fc1df21ec92c54957feb88ee3438d2e8d0d24a | |
parent | 672047a6d01ffb265e207f05e8f132cb716c6e7b [diff] |
pw_thread: Add explicit public default ctor for stl::Options Without the explicit default public constructor c++20-based compiler rejects `stl::Options{}` initialization and allows only `stl::Options()` one. See this example for the reference: https://godbolt.org/z/K5GWaGsTf. This CL also prevents to create `thread::Options` using `{}` syntax with explicitly defining the empty constructor instead of the default one. See this example for the reference: https://godbolt.org/z/EP7hTooo8. Change-Id: I2749198c0f8134f57320d8f91515c45d252bd089 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98101 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Dennis Kormalev <denk@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/.