get error that day is not a type.
but i'm confused. day is class in chrono and i've to be able create object from that.
can anyone explain ?
thank you and sorry for my bad english :)
Day class is available since c++20, so your std version should 20. Otherwise you will get this error.
using std=c++2a is enough? (if yes, still give error no type named 'day' in namespace 'std::chrono')
It is not enough because feature should be implemented by compilers as well. So, I checked that still GCC has not implemented yet this feature with the latest version but Clang 10.1 supports it.
Обсуждают сегодня