Is it a POD?
template <class T> struct Data { float val_f; T val_t; int val_i; };
If I have a C function that requires something like:
struct Data { float val_f; double val_t; int val_i; };
can i pass a Data<double> object?
Ps. I think the answer is yes, since at compile time the Data<dobule> will be translated into the structure above and will be the POD structure. I only need and (informed) confirmation about this.
source share