1
General / Re: 'Window' in struct Shared_Context does not name a type
« on: January 13, 2021, 05:15:33 pm »The code looks ok. Maybe a loop in includes? What headers do EnventManager.h and StateManager.h include?
The EventManager.h include this
#include <unordered_map>
#include <functional>
#include <SFML/Graphics.hpp>
#include "CustomHash.h"
#include <fstream>
#include <sstream>
#include <functional>
#include <SFML/Graphics.hpp>
#include "CustomHash.h"
#include <fstream>
#include <sstream>
The StateManager.h include this
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <unordered_map>
#include <functional>
#include "Window.h"
#include "EventManager.h"
#include "CustomHash.h"
#include "SharedContext.h"
#include <SFML/Window.hpp>
#include <unordered_map>
#include <functional>
#include "Window.h"
#include "EventManager.h"
#include "CustomHash.h"
#include "SharedContext.h"