PlatformIOで最新のC++を使う
PlatformIO
で
C++17
を使う
https://techoverflow.net/2023/09/07/how-to-use-c17-c23-with-platformio-using-esp32-arduino/
https://waregawa-log.hatenablog.com/entry/2021/01/07/141853
toolchainも変えないとダメ?
toolchain-gccarmnoneeabi
を1.120000など最近のversionにすると、gcc 12が使え、defaultでC++17になる
このversionならC++23の一部機能まで使える
https://cpprefjp.github.io/implementation.html#gcc
code:ini
build_flags = -std=gnu++23
build_unflags = -std=gnu++17
#2025-07-19
15:51:01
#2025-07-10
07:50:03