> 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 _at__at_ -299,12 +299,12 _at__at_ // 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); }Received on Sun Jun 29 2003 - 09:37:40 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:13 UTC