Date: Sun, 14 Mar 2004 16:40:14 -0600 From: Gregory Harris <gharris@ipsentinel.com> To: questions@freebsd.org Subject: Re: Warning in fstream header file Message-ID: <1079304014.4088.5.camel@madhacker.ipsentinel.com> In-Reply-To: <44llm3o7r5.fsf@be-well.ilk.org> References: <1079219775.4088.2.camel@madhacker.ipsentinel.com> <44llm3o7r5.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ah, I found that upgrading from freebsd 5.1 to 5.2.1 fixes this issue. Thanks Greg On Sun, 2004-03-14 at 07:53, Lowell Gilbert wrote: > Gregory Harris <gharris@ipsentinel.com> 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 <fstream> > > > > 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.]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1079304014.4088.5.camel>