| 48 | { |
| 49 | protected: |
| 50 | int_type |
| 51 | underflow() override |
| 52 | { |
| 53 | // make sure we don't throw before the parser had the chance to start |
| 54 | if( !gptr() ) |
| 55 | { |
| 56 | setg(buf_, buf_, buf_ + 1); |
| 57 | return *buf_; |
| 58 | } |
| 59 | |
| 60 | throw std::invalid_argument("this buffer throws"); |
| 61 | } |
| 62 | |
| 63 | private: |
| 64 | char buf_[1] = {'t'}; |
nothing calls this directly
no outgoing calls
no test coverage detected