This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12766] New: Backward compatibility header file strstream.h is missing


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12766

           Summary: Backward compatibility header file strstream.h is
                    missing
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: larssj at nospam dot dk
                CC: gcc-bugs at gcc dot gnu dot org

In Bug 9925 the warning say  "use <sstream> instead of the deprecated header
<strstream.h>"

But in 3.3.x and 3.4 the is only 'backward/strstream' but not 'backward/strstream.h'

Old C++ code expect 'strstream.h' and 'strstream'.

Take a look at gcc-3.2.3 and before that
-rw-r--r--    1 root     root         5671 2003-10-12 09:35 strstream
-rw-r--r--    1 root     root         1573 2003-10-12 09:35 strstream.h
-rw-r--r--    1 root     root         3023 2003-10-12 09:35 tempbuf.h

And here is the code of part of strstream.h

#ifndef _CPP_BACKWARD_STRSTREAM_H
#define _CPP_BACKWARD_STRSTREAM_H 1
 
#include "strstream"
 
using std::strstreambuf;
using std::istrstream;
using std::ostrstream;
using std::strstream;
 
#endif

Please add the missing backward/strstream.h from gcc-3.2.3 line.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]