| 254 | } |
| 255 | |
| 256 | String pop() { |
| 257 | if (stack.empty()) |
| 258 | DOCTEST_INTERNAL_ERROR("TLSS was empty when trying to pop!"); |
| 259 | |
| 260 | std::streampos pos = stack.back(); |
| 261 | stack.pop_back(); |
| 262 | unsigned sz = static_cast<unsigned>(ss.tellp() - pos); |
| 263 | ss.rdbuf()->pubseekpos(pos, std::ios::in | std::ios::out); |
| 264 | return String(ss, sz); |
| 265 | } |
| 266 | } g_oss; |
| 267 | |
| 268 | std::ostream* tlssPush() { |