This class has an enum:
class ThreadController
{
public:
enum ThreadType { ... }
}
Is it possible to use ThreadType &
from the forward declared class?
class ThreadController;
class ThreadWorker
{
public:
static ThreadWorker makeThreadWorker(const ThreadController::ThreadType & type);
}
I get the following error:
'ThreadType' in 'class ThreadController' does not name a type
But since I am using a reference, can't the compiler be happy with not having a definition in the header file?