You cannot declare a member variable of a class like that.
Declare it as:
typedef std::pair <int, int> MyMove;
static const MyMove my_no_move;
And then define it outside the class as:
// The typedef MyMove is also scoped
const ConnectFourState::MyMove ConnectFourState::my_no_move(-1, -1);
3
solved not able to compile code with “std::pair” [closed]