Something wrong with enum
<p>I've something like:  </p>

<pre><code>enum Direction{Forward,Backward};

template&lt;Direction dir = Forward&gt;
class X
{
private:

    Direction my_direction_;
public:

    void set_direction(Direction dir)//here I'm getting an error
    {
        my_direction_ = dir;
    }

};
</code></pre>

<p><em>error: declaration of 'Direction dir'</em><br>
Any reason why? BTW, it does compile with VS2010.</p>
