Namespaces
Variants
Actions

Talk:cpp/io/manip/get time

From cppreference.com
< Talk:cpp‎ | io‎ | manip

seems the version information is incorrect. I run the example code with GCC4.9(c++11), but get compile error.

Should the std::get_time start with c++14 or later?


Wuhaochi (talk) 01:00, 14 March 2017 (PDT)

no, std::get_time is part of C++11. gcc 4.9 was still in-progress implementation, it had some part of C++11, but not others. In fact, because of a minor gcc bug, the example of this page currently only works with clang++/libc++. --Cubbi (talk) 04:12, 14 March 2017 (PDT)