Hello
I want to pass 'this' as a reference to another class's constructor:
Is this the right way to do it?Code:class A { public: A() : m_b(*this) { } B m_b; }; class B { public: B(A &ref) : m_ref(ref) { } A &m_ref; };
I think the red line is critical..
Thanks for help