std::put_time implementation status in GCC?

后端 未结 2 1798
旧巷少年郎
旧巷少年郎 2020-11-29 05:42

I was trying to compile this example program using GCC (tested versions 4.5.1, 4.6.3, 4.8.4):

#include 
#include 
#include <         


        
相关标签:
2条回答
  • 2020-11-29 06:16

    See TODO extended iomanip manipulators std::get_time and std::put_time for gcc 4.8.0.

    See also Cross Platform way to get the time of day? claiming that is not implemented in 4.7.0.


    UPDATE: As the gcc developer Jonathan Wakely confirmed below: The std::get_time and std::put_time manipulators are still missing in gcc 4.9.


    UPDATE: Jonathan Wakely closed this ticket on 22 Dec, 2014:

    Fixed for GCC 5

    Thanks simonwo for letting me know about it.

    0 讨论(0)
  • 2020-11-29 06:22

    You might have noticed the link you gave doesn't list any parts of the library! But below the table it says:

    The status of the library implementation can be tracked in this table

    That table notes that std::get_time and std::put_time manipulators are not implemented yet.

    Edit: put_time is now on the GCC development trunk.

    0 讨论(0)
提交回复
热议问题