Skip to content

Commit

Permalink
Remove whitespace characters in cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
Crayon2000 committed Jul 3, 2024
1 parent 70ec328 commit 807a4de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/cplusplus/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ int main(int argc, const char * argv[]) {
std::cerr << "Usage: " << argv[0] << " FILE";
return 1;
}

std::ifstream t(argv[1]);
std::string str((std::istreambuf_iterator<char>(t)),
std::istreambuf_iterator<char>());

TopLevel tl = json::parse(str);
json j2 = tl;

std::cout << j2 << std::endl;

return 0;
Expand Down

0 comments on commit 807a4de

Please sign in to comment.