class Type1;
class Type2;
class __declspec(dllexport) Foo
{
public:
Foo();
private:
Type1 * m_p1;
Type2 * m_p2;
};
Can I replace Type1 with Type3 without breaking binary compatibility?
Background: Unfortunately, this class does not use the pimpl idiom. To remedy this, I want to replace the pointer m_p1 with a pimpl-pointer.
Using Visual Studio 2010, Windows 7 and 10.