Create a gist now

Instantly share code, notes, and snippets.

Embed
Ciclic dependency problem
// ---- main_window.cpp ----
#include "main_window.h"
#include "window.h"
//My main window class
main_window mw;
//I have a close child that I want to close
mw.close_child();
// ---- window.cpp ----
#include "window.h"
void window::close() {
//Closing window stuff...
cout << "Closing window" << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment