c++ error: Function 'get_time' could not be resolved - Ubuntu g++

I have the following piece of C++ code on my class, to convert a ISO 8601 string to a time_t structure:

#include <iostream>
#include <sstream>
#include <string>
#include <iomanip>
#include <ctime>

.... class code...

struct tm tempTime;
std::stringstream ss(data);
ss >> std::get_time(&tempTime, "%FT%TZ");
std::time_t time = mktime(&tempTime);

.... class code...

But the compiler insists on giving me the following error:

Function 'get_time' could not be resolved

According to here, std::get_time should be included with iomanip

I supposed all I had to do was to include iomanip... Am I missing something here ?

I´m running Ubuntu 14.04 LTS.

Thanks for helping.


At the bottom of this bug report Jonathan Wakely reports it's available from GCC 5. You can use g++ --version to check your version. (Should be std::tm tenpTime FWIW).

The developer himself says here it's not implemented yet, but seems to be implemented in GCC 5 now so you need to find an upgrade.

Need Your Help

How to read nested XML using xDocument in Silver light?

c# xml silverlight-3.0 linq-to-xml

Hi currently I have a nested XMl , having the following Structure :