Skip to content

Commit 1df72a9

Browse files
authored
Macro invoke collision fix
https://stackoverflow.com/a/518561
1 parent 03eb4b5 commit 1df72a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Connect4Board.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ int Connect4Board::getNextMoveInput()
140140
{
141141
std::cerr << "What are you even typing? Let's try that again.";
142142
std::cin.clear();
143-
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
143+
std::cin.ignore((std::numeric_limits<std::streamsize>::max)(), '\n');
144144
continue;
145145
}
146146

@@ -188,4 +188,4 @@ bool Connect4Board::checkForWinner()
188188
}
189189

190190
return false;
191-
}
191+
}

0 commit comments

Comments
 (0)