I got a class called "player" which I have to use in my project, it looks like this:
template<typename F>
class player {
public:
int play(const F &field);
};
Now I want to use the function "play" in my Game and I tried calling it like this:
player<Game> player2();
player2.play(this);
I got the following error:
error: request for member 'play' in 'player2',
which is of non-class type 'player<Game>()'
I have no idea why this is, I did similar things with other classes and it worked just fine ... Could someone please help me? (I'm using eclipse and mingw gcc)
Edit:
Ok everything works now. Thank you very much.