I have a class called Restaurant that contains an Employee member. Now Employee is a friend class of Restaurant. When I try to compile this I get errors on the Employee mCurrentEmployee saying that its missing type specifier - int assumed. Why does the compiler get mad at me for this? Any ideas on how I can fix it? Thanks.
#pragma once
#include "employee.h"
class Restaurant{
friend class Employee;
private:
Employee mCurrentEmployee;
};
-
#pragma once
#include "restaurant.h"
class Employee {
}