<ftream> errors under g++ 3.2.2

From: Jeffrey Hsu (hsu_at_FreeBSD.org)
Date: 06/29/03

  • Next message: Markus Niemistö: "Re: <ftream> errors under g++ 3.2.2"
    To: abowhill@blarg.net
    Date: Sun, 29 Jun 2003 11:44:11 -0700
    
    

    > file IO using <fstream> gives error messages about implicit typenames
    > being deprecated, and I can't for the life of me figure out what to do
    > my code to make the compiler happy

    Change your /usr/include/g++/fstream as follows:

    --- /usr/include/g++/fstream Sun Jun 29 09:17:46 2003
    +++ fstream Sun Jun 29 11:33:38 2003
    @@ -299,12 +299,12 @@
     
       // Generic definitions.
       template <typename _CharT, typename _Traits>
    - basic_filebuf<_CharT, _Traits>::int_type
    + typename basic_filebuf<_CharT, _Traits>::int_type
         basic_filebuf<_CharT, _Traits>::underflow()
         { return _M_underflow_common(false); }
     
       template <typename _CharT, typename _Traits>
    - basic_filebuf<_CharT, _Traits>::int_type
    + typename basic_filebuf<_CharT, _Traits>::int_type
         basic_filebuf<_CharT, _Traits>::uflow()
         { return _M_underflow_common(true); }

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Markus Niemistö: "Re: <ftream> errors under g++ 3.2.2"

    Relevant Pages

    • Re: <ftream> errors under g++ 3.2.2
      ... and I can't for the life of me figure out what to do ... >> my code to make the compiler happy ... Can someone commit this change so we don't all have to do this every ... To unsubscribe, ...
      (freebsd-current)
    • Re: C return a++ - is it safe?
      ... In other words you wouldn't bet your life on it.... ... Yes, no language is 'safe'. ... range, the compiler complains. ... for an unsigned thype the aritimetic is very easy ...
      (comp.lang.c)
    • Re: C return a++ - is it safe?
      ... In other words you wouldn't bet your life on it.... ... Yes, no language is 'safe'. ... range, the compiler complains. ... of pointers allows most misuse of pointer variables to be detected ...
      (comp.lang.c)
    • Re: 8 bit microcontroller market
      ... C compiler are now free (I guess this applies to all their target ... For the life of me, I can't understand why chip makers ... Microchip was one of the first to give away their IDE, ...
      (comp.arch.embedded)
    • Re: Building libxml2 on OpenVMS/VAX
      ... long double to double (like it stated in the compiler message). ... from long float (which this above says is obsolete usage) to double. ... VAXman- A Bored Certified VMS Kernel Mode Hacker VAXmanTMESISCOM ... "Well my son, life is like a beanstalk, isn't it?" ...
      (comp.os.vms)