Skip to content

Instantly share code, notes, and snippets.

@thiagomg thiagomg/main_window.h
Last active Nov 5, 2015

What would you like to do?
Ciclic dependency problem
//File main_window.h --------------------
#pragma once
#include "window.h"
struct main_window {
void close_child();
window child;
//File window.h -------------------------
#pragma once
#include <string>
#include "main_window.h"
struct window {
window(main_window &parent) : _parent(parent) { }
void close();
main_window &_parent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.