MCPcopy Create free account
hub / github.com/boostorg/json / underflow

Method underflow

test/value.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48{
49protected:
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
63private:
64 char buf_[1] = {'t'};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected