From owner-freebsd-current@FreeBSD.ORG Sun Jun 29 11:37:40 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3548F37B401 for ; Sun, 29 Jun 2003 11:37:40 -0700 (PDT) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDAD743FE1 for ; Sun, 29 Jun 2003 11:37:39 -0700 (PDT) (envelope-from hsu@FreeBSD.org) Received: from FreeBSD.org (adsl-63-193-112-125.dsl.snfc21.pacbell.net [63.193.112.125]) by mta7.pltn13.pbi.net (8.12.9/8.12.3) with ESMTP id h5TIbckY015162; Sun, 29 Jun 2003 11:37:38 -0700 (PDT) Message-Id: <200306291837.h5TIbckY015162@mta7.pltn13.pbi.net> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: abowhill@blarg.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 29 Jun 2003 11:44:11 -0700 From: Jeffrey Hsu cc: freebsd-current@FreeBSD.org Subject: errors under g++ 3.2.2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2003 18:37:40 -0000 > file IO using 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 - basic_filebuf<_CharT, _Traits>::int_type + typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>::underflow() { return _M_underflow_common(false); } template - basic_filebuf<_CharT, _Traits>::int_type + typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>::uflow() { return _M_underflow_common(true); }