Do not tell me how to convert one class to another? For example, I have classes:
class A { public: int *a; } and
class S { public: std::string *s; } and I created 2 objects:
A tmp1; S tmp2; tmp1 = (mp_it1)tmp2; tmp1 != tmp2; I guess I need something like operator А() const { } in class S and the like in class А But how can I also pass class variables I can't imagine?
How do I implement this peretypovyvanie? Very desirable with an example.