| 46 | } |
| 47 | |
| 48 | bool _checkStreamFail(std::istringstream& str) |
| 49 | { |
| 50 | if (str.fail()) |
| 51 | { |
| 52 | return false; |
| 53 | } |
| 54 | |
| 55 | std::string tmp; |
| 56 | str >> tmp; |
| 57 | // reading more data must fail, because there should've been no more data |
| 58 | return str.fail() && tmp.find_first_not_of(" \t\r") == std::string::npos; |
| 59 | } |
| 60 | |
| 61 | } |
no test coverage detected