c++/5314: compilation error

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Sat Jan 12 11:59:00 GMT 2002


Synopsis: compilation error

State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Sat Jan 12 11:59:22 2002
State-Changed-Why:
    Even though this code example works with other
    C++ compilers and older gcc versions, it does
    not work with gcc 3.x, because the
    constructor you are invoking on filebuf is not
    part of the C++ standard.
    
    Look at:
    http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/porting-howto.html
    in the section, "3. stream::attach(int fd) is not in the standard any more"
    
    In order to do what you want, look at the following
    example from Josuttis:
    http://www.josuttis.com/libbook/io/outbuf2.hpp.html
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5314



More information about the Gcc-bugs mailing list