I'm trying to initialize ::tm struct's members in a structure using initializer list as shown below. But it's only possible in C++ stds > 98.
How can I achieve the same in C++ 98?
struct abc {
abc () : time_struct_{0,0,0,0,0,0,0,0,0}, x(0) { }
::tm time_struct_ ;
int x;
};
As Daniel Langr mentioned time_struct_()
does the job.