Со следующим минимальным примером: < /p>
Код: Выделить всё
#include
#include
int main()
{
using namespace std;
cout
> /usr/local/gcc-11.1.0/bin/g++-11.1 -std=c++-20 main.cpp
< /code>
дает следующую ошибку: < /p>
main.cpp: In function ‘int main()’:
main.cpp:8:36: error: incomplete type ‘std::chrono::utc_clock’ used in
nested name specifier
8 | cout
Но я получаю одинаковое сообщение об ошибке. < /p>
Некоторая дополнительная информация: < /p>
> /usr/local/gcc-11.1.0/bin/g++-11.1 --version
< /code>
дает следующий вывод: < /p>
g++-11.1 (GCC) 12.0.0 20210427 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
< /code>
, что для меня неожиданно, так как я ожидаю увидеть 11.1. Я построил это на MacOS, а моя версия Clang ++ Подробнее здесь: https://stackoverflow.com/questions/673 ... -specifier
Мобильная версия