Get rid of the #include "event.hpp"
in logger.hpp
- the forward declaration of class Event
should be enough if all you need is a reference to an Event
object in the function prototype:
#ifndef _LOGGER_HPP_
#define _LOGGER_HPP_
// #include "event.hpp" // <<-- get rid of this line
class Event; // Forward decl
// Class definitions
...
The implementation of class Logger
in logger.cpp
will likely need to include event.hpp
.