fork(1) download
  1. #include <iostream>
  2.  
  3. struct CDialog
  4. {
  5. bool m_Visible;
  6. CDialog();
  7. void SomeMethod ();
  8. };
  9. CDialog::CDialog() : m_Visible(true) {}
  10. void CDialog::SomeMethod()
  11. {
  12. std::cout << m_Visible << std::endl;
  13. auto TempF = [&]
  14. {
  15. m_Visible = false;
  16. };
  17. TempF();
  18. std::cout << m_Visible << std::endl;
  19. }
  20.  
  21. int main() {
  22. CDialog().SomeMethod();
  23. }
Success #stdin #stdout 0s 2828KB
stdin
Standard input is empty
stdout
1
0