P
Pelle Beckman
Hi,
Reading X. Meng's post on embedded classes I came to
think of a similar problem I found myself having.
void GamestateToString(class GameApp::TGamestate);
class GameApp {
typedef enum {
STATE_1,
STATE_2
} TGamestate;
[...]
};
This won't compile since I'm not allowed to
define GamestateToString()'s arguments like
that. Why?
In fact, it seems like I can't access GameApp::TGamestate at all,
not even for simple variables, ie.
GameApp::TGamestate state;
state = STATE_1;
-- Pelle
Reading X. Meng's post on embedded classes I came to
think of a similar problem I found myself having.
void GamestateToString(class GameApp::TGamestate);
class GameApp {
typedef enum {
STATE_1,
STATE_2
} TGamestate;
[...]
};
This won't compile since I'm not allowed to
define GamestateToString()'s arguments like
that. Why?
In fact, it seems like I can't access GameApp::TGamestate at all,
not even for simple variables, ie.
GameApp::TGamestate state;
state = STATE_1;
-- Pelle