| 23 | } |
| 24 | |
| 25 | bool read() { |
| 26 | std::cout << "custom read: read #" << ++read_count |
| 27 | << std::endl; |
| 28 | current_size = fread(buffer, 1, 2, f); |
| 29 | return current_size > 0 && ferror(f) == 0; |
| 30 | } |
| 31 | |
| 32 | ~custom_reader() { |
| 33 | std::fclose(f); |
no outgoing calls
no test coverage detected