Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- class A;
- class B
- {
- public:
- B( A& _a )
- :m_pA{_a}
- {
- }
- A& m_pA;
- };
- class A{};
- int main() {
- A a;
- B b{a};
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement