From owner-freebsd-questions@FreeBSD.ORG Sat Mar 13 15:16:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF82316A4CE for ; Sat, 13 Mar 2004 15:16:16 -0800 (PST) Received: from mail.ipsentinel.com (205.87.cm.sunflower.com [24.124.87.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ECC843D1F for ; Sat, 13 Mar 2004 15:16:16 -0800 (PST) (envelope-from gharris@ipsentinel.com) Received: (qmail 98430 invoked from network); 13 Mar 2004 22:50:06 -0000 Received: from unknown (HELO ?10.44.2.3?) (10.44.2.3) by 10.44.1.5 with SMTP; 13 Mar 2004 22:50:06 -0000 From: Gregory Harris To: questions@freebsd.org Content-Type: text/plain Message-Id: <1079219775.4088.2.camel@madhacker.ipsentinel.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Sat, 13 Mar 2004 17:16:15 -0600 Content-Transfer-Encoding: 7bit Subject: Warning in fstream header file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2004 23:16:16 -0000 Hello. I'm not sure if this is the appropriate spot to ask, but I don't seen any alternative places since it is a freebsd-specific programming problem. When I compile the following simple program: #include int main() { } I get this output: -bash-2.05b$ g++ -Wall -o fstream-warnings fstream-warnings.cpp In file included from fstream-warnings.cpp:1: /usr/include/g++/fstream:304: warning: `typename std::basic_filebuf<_CharT, _Traits>::int_type' is implicitly a typename /usr/include/g++/fstream:304: warning: implicit typename is deprecated, please see the documentation for details /usr/include/g++/fstream:309: warning: `typename std::basic_filebuf<_CharT, _Traits>::int_type' is implicitly a typename /usr/include/g++/fstream:309: warning: implicit typename is deprecated, please see the documentation for details How can I get rid of these warnings in the header file? Is fstream itself deprecated or is it just an error in the header file? Thanks. Greg