Hello. This is a little portion of some code I have in a header.
Code:class Circle
{
public:
void move(enum direction d);
private:
enum direction { up, down, left, right };
};
This is a little portion of code I have in a source file.
I am getting the errorCode:void Circle::move(enum direction d)
{
}
This is a little funny, because when I hold my cursor over both the declaration and definition of this function in MSVC 2005, they are exactly the same. Furthermore, if I just sayQuote:
error C2511: 'void Circle::move(Circle::direction)' : overloaded member function not found in 'Circle'
It gives me the error that it doesn't know what direction is, but I thought this was legal in C++. Any insight is much appreciated!Code:void move(direction d);