Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Ciclic dependency problem
#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