We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6282ce commit d9fb307Copy full SHA for d9fb307
src/test/json/big_list_of_naughty_strings.cpp
@@ -14,7 +14,7 @@
14
std::string get_file_contents( const char* filename )
15
{
16
std::ifstream in( filename, std::ios::in | std::ios::binary );
17
- if( in ) {
+ if( !in.fail() ) {
18
std::string contents;
19
in.seekg( 0, std::ios::end );
20
contents.resize( static_cast< std::string::size_type >( in.tellg() ) );
0 commit comments