Assume I have a C/C++ struct
struct ABCTYPE
{
double A;
double B;
double C;
};
Is it ensured to have no extra padding on any kind of modern platforms?
To be more specific, if I use
std::vector<ABCTYPE> storage;
// add some elements
// now i need some C routines to the data
double* param=&(storage[0]);
c_routine(param); // Tested OK on Win/Linux, but will it work on any platforms?