Re: <ftream> errors under g++ 3.2.2
From: David Leimbach (leimy2k_at_mac.com)
Date: 06/29/03
- Previous message: David Leimbach: "Re: <ftream> errors under g++ 3.2.2"
- In reply to: Jeffrey Hsu: "<ftream> errors under g++ 3.2.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 29 Jun 2003 13:42:32 -0500 To: Jeffrey Hsu <hsu@FreeBSD.org>
On Sunday, June 29, 2003, at 1:44PM, Jeffrey Hsu wrote:
>> 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:
Can someone commit this change so we don't all have to do this every
time
we rebuild? :) I think there might be other offending headers too.
Dave
>
> --- /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"
_______________________________________________
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"
- Previous message: David Leimbach: "Re: <ftream> errors under g++ 3.2.2"
- In reply to: Jeffrey Hsu: "<ftream> errors under g++ 3.2.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|