Clion not recognising some C++20 commands

已回答

Hello, I'm a fourth semester IT student.

I just tried to utilize the new C++20 changes in std::chrono - for example the "duration" Helper types like std::chrono::months.

CLion just underlines "months" and says variable not declared/known.

std::chrono::hours is known as it is older. Furthermore, I used other C++20 things which worked perfectly fine.

I'm using CMake with MinGW on Windows 10 if that matters.

0

Hello!

Does the code compile successfully?

1
Avatar
Permanently deleted user

Hello, thanks for your answer.
At that moment Clion would not let me compile, cause it was marked as an Error(red underline):
I worked my way around the chrono duration feature I mentioned then.

I just tried it again to verify but indeed it seems to have been fixed in the April Version of CLion:)

At least for the features I tried to use.

0

请先登录再写评论。