Hello.
I am aware the title is a bit off but here is what i need.
class JSon1 {/*Unable to be included with JSon2*/};
class JSon2 {/*Unable to be included with JSon1*/};
class SSon1 {/*Unable to be included with SSon2*/};
class SSon2 {/*Unable to be included with SSon1*/};
class Base1 : public: JSon1, SSon1 {}; // valid
class Base2 : public: JSon1, JSon2 {}; // invalid
class Base3 : public: JSon1 {}; // valid
class Base4 : public: SSon1, SSon2 {}; // invalid
I will have classes of opposite functioning, so i want to protect the coder somehow so its not possible including the classes i want to mark as opposite.
Currently i know no way of doing this except trying to overload some operator witch i haven't think off yet.