c++ enum parameter gives identifier error
<p>So, I have a class named "Player", within the header file I have this:</p>

<pre><code>class Player
{
public:
    void move(Player::Direction direction);

private:
    enum Direction { LEFT, RIGHT, UP, DOWN };
};
</code></pre>

<p>And within the cpp file I have this:</p>

<pre><code>void Player::move(Player::Direction direction)
{

}
</code></pre>

<p>Now my problem is, intellisense says there is no such member as direction withint the class in the header, but in the cpp file it says it's valid. When compiling I get the error: "error C2061: syntax error : identifier 'Direction'"</p>