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.