Created
November 5, 2015 13:11
-
-
Save thiagomg/12c80f9116231502e210 to your computer and use it in GitHub Desktop.
Ciclic dependency problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "window.h" | |
#include "main_window.h" | |
void window::close() { | |
//Closing window stuff... | |
if( msgbox::inform("Really?") ) { | |
cout << "Closing window" << endl; | |
_parent.inform_closed(this); | |
} else { | |
cout << "Thanks for this 2nd chance!" << endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment