From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 05:53:03 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 BF55116A4CE for ; Sun, 14 Mar 2004 05:53:03 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF85D43D67 for ; Sun, 14 Mar 2004 05:53:03 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.196.44]) by comcast.net (rwcrmhc13) with ESMTP id <2004031413530301500si36de>; Sun, 14 Mar 2004 13:53:03 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id C973CE; Sun, 14 Mar 2004 08:53:02 -0500 (EST) Sender: lowell@be-well.ilk.org To: Gregory Harris References: <1079219775.4088.2.camel@madhacker.ipsentinel.com> From: Lowell Gilbert Date: 14 Mar 2004 08:53:02 -0500 In-Reply-To: <1079219775.4088.2.camel@madhacker.ipsentinel.com> Message-ID: <44llm3o7r5.fsf@be-well.ilk.org> Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: questions@freebsd.org Subject: Re: Warning in fstream header file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2004 13:53:03 -0000 Gregory Harris writes: > 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. There is no error involved here, just warnings. You could update your compiler, and the warnings should go away. [I think -- you didn't mention anything about your system, so it's impossible to be sure.]