1 2 3 4 5 6 7 8 | class A1 { ~A1(); ... B1 m_b1; C1 m_c1; D1 m_d1; }; |
Through practice in gcc, I found the deletion order of class A1 is: ~A1(), m_d1, m_c1, m_b1, ...
人,技术,生活。
1 2 3 4 5 6 7 8 | class A1 { ~A1(); ... B1 m_b1; C1 m_c1; D1 m_d1; }; |
Through practice in gcc, I found the deletion order of class A1 is: ~A1(), m_d1, m_c1, m_b1, ...