This is a well-known issue with this damn mistake.
expected class name to '{token
Well, despite my hard work and googling, I could not solve this error. I'm sorry. This is my last beach.
In ui.cpp of my project, I do:
#include "wfqueue_proxy_factory.hpp"
OK, this causes this stupid error in my compiler:
In the file included in wfqueue_proxy_factory.hpp: 29, from ui.cpp: 28: wfqueue_manager_proxy.hpp: 42: error: expected class name before '{token
There are three classes in my project: First
#ifndef _WFQUEUE_PROXY_FACTORY_HPP
#define _WFQUEUE_PROXY_FACTORY_HPP
#include "wfqueue_manager_proxy.hpp"
class WFQueueProxyFactory {
};
#endif
Second
#ifndef _WFQUEUE_MANAGER_PROXY_HPP
#define _WFQUEUE_MANAGER_PROXY_HPP
#include "workflow.hpp"
#include "wfqueue.hpp"
class WFQueueManagerProxy : public WFQueue {
};
#endif
Third
#ifndef _WFQUEUE_HPP
#define _WFQUEUE_HPP
#include "workflow.hpp"
class WFQueue {
};
#endif
, , , , ; } , EVERY , , , ; . workflow.hpp, ( - , ).
WFQueue - - , , . WFQueue ... .... , , "interface" , .
, :
#ifndef _WFQUEUE_MANAGER_PROXY_HPP
#define _WFQUEUE_MANAGER_PROXY_HPP
#include "workflow.hpp"
#include "wfqueue.hpp"
class WFQueueManagerProxy {
};
#endif
, ... , .