Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Apr 8, 2024
1 parent 4b183f0 commit a187ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/redirect.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class SuppressOutput {

class RedirectInput {
public:
RedirectInput(const std::string &input) : _in(input) {
explicit RedirectInput(const std::string &input) : _in(input) {
_oldCin = std::cin.rdbuf(); // back up cin's streambuf
std::cin.rdbuf(_in.rdbuf()); // assign streambuf to cin
}
Expand Down

0 comments on commit a187ecf

Please sign in to comment.