4 ms·
This can be done, check the end of this answer: http://stackoverflow.com/a/628079/429972 http://stackoverflow.com/a/628079/429972 // file: A.h class B;
by jontro 10y ago
This can be done, check the end of this answer: http://stackoverflow.com/a/628079/429972 http://stackoverflow.com/a/628079/429972
// file: A.h
class B;
class A {
B* _b; // or any of the other variants.
};
- gruez 10y agoYou can also do this class A { class B* _b; };