M
Michal
hallo people.
how to write C++ style conversion in order for it to compile?
#include <sys/time.h>
#include <algorithm>
#include <iostream>
using namespace std;
typedef pair<unsigned long long, struct timeval> PerfDebData;
int main(int argc, char *argv[])
{
PerfDebData duration(0, static_cast<struct timeval>({0, 0}));
duration.first = 3;
cout << duration.first << endl;
return 0 ;
}
best regards,
Michal
how to write C++ style conversion in order for it to compile?
#include <sys/time.h>
#include <algorithm>
#include <iostream>
using namespace std;
typedef pair<unsigned long long, struct timeval> PerfDebData;
int main(int argc, char *argv[])
{
PerfDebData duration(0, static_cast<struct timeval>({0, 0}));
duration.first = 3;
cout << duration.first << endl;
return 0 ;
}
best regards,
Michal