Update contrib.
7 * This full_streambuf purpose is to act like a full disk to check the right behavior
8 * of the STLport code in such a case.
11 class full_streambuf : public std::streambuf {
13 typedef std::streambuf _Base;
15 typedef _Base::int_type int_type;
16 typedef _Base::traits_type traits_type;
18 full_streambuf(size_t nb_output, bool do_throw = false)
19 : _nb_output(nb_output), _do_throw(do_throw)
22 std::string const& str() const
26 int_type overflow(int_type c) {
27 if (_nb_output == 0) {
28 #if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
30 throw "streambuf full";
33 return traits_type::eof();
36 _buf += traits_type::to_char_type(c);
46 #endif //_FULL_STREAM_H