2021-04-08 CLionでコンパイラ設定 C++20の機能が使えなかったので,デフォルト(たぶんclang)からgccに変更 Preferences > Build, Execution, Deployment > Toolchains C Compiler: /opt/homebrew/bin/gcc-10 C++ Compiler: /opt/homebrew/bin/g++-10