Does changing the order of class private data members breaks ABI
- by Dmitry Yudakov
I have a class with number of private data members (some of them static), accessed by virtual and non-virtual member functions. There's no inline functions and no friend classes.
class A
{
int number;
string str;
static const int static_const_number;
public:
// got virtual and non-virtual functions, working with these memebers
virtual void func1();
void func2();
// no inline functions or friends
};
Does changing the order of private data members breaks ABI in this case?
class A
{
string str;
static const int static_const_number;
int number; // <-- integer member moved here
...
};