]> gcc.gnu.org Git - gcc.git/commitdiff
[multiple changes]
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 10 Mar 2001 01:36:23 +0000 (01:36 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 10 Mar 2001 01:36:23 +0000 (01:36 +0000)
2001-03-09  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

* include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
Use streamsize, not int_type.

2001-03-08  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/27_io/streambuf.cc (test06): New test, disabled at the
moment.

From-SVN: r40358

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/testsuite/27_io/streambuf.cc

index 0c73017367a0302f594359db5e3abc26afc19cf6..62af63c0ff5a6b1ad8f18eefc4d602ce5ed49219 100644 (file)
@@ -1,3 +1,14 @@
+2001-03-09  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
+
+       * include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
+       operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
+       Use streamsize, not int_type.
+
+2001-03-08  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/27_io/streambuf.cc (test06): New test, disabled at the
+       moment.
+       
 2001-03-08  Andreas Schwab  <schwab@suse.de>
 
        * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Fix syntax in test
index faee226ce6cd21087f16448ab2c19f394e428b56..0ea81cf5f23cbc607ba4453118d8ba4d30951cff 100644 (file)
@@ -984,9 +984,9 @@ namespace std {
        {
          try {
            // Figure out how many characters to extract.
-           int_type __num = static_cast<int_type>(__in.width());
-           if (__num <= 0)
-             __num = basic_string<_CharT, _Traits>::npos;
+           streamsize __num = __in.width();
+           if (__num == 0)
+             __num = numeric_limits<streamsize>::max();
 
            __streambuf_type* __sb = __in.rdbuf();
            const __ctype_type* __ctype = __in._M_get_fctype_ios();
index 4aaa8958408ec0ca5401d0228e1d81758c5c8c65..30a449979c88828d4258dc76bba209af8fc7c69e 100644 (file)
@@ -326,6 +326,17 @@ void test05()
     nsp.sputc('a');
 }
 
+// test06
+// XXX this should work, doesn't due to compiler limitations.
+#if 0
+namespace gnu 
+{
+  class something_derived;
+}
+
+class gnu::something_derived : std::streambuf { };
+#endif
+
 int main() 
 {
   test01();
This page took 0.070729 seconds and 5 git commands to generate.