This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch, libstdc++, testsuite] Modify tests to use tmpnam()
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Janis Johnson <janis187 at us dot ibm dot com>
- Cc: sje at cup dot hp dot com, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 03 Mar 2010 23:17:45 +0100
- Subject: Re: [patch, libstdc++, testsuite] Modify tests to use tmpnam()
- References: <201003032135.o23LZur08153@lucas.cup.hp.com> <1267654469.1987.3.camel@janis-laptop>
On 03/03/2010 11:14 PM, Janis Johnson wrote:
> tmpnam is declared, and L_tmpnam is defined, in <cstdio> which is
> already included in 9661-1.cc but not 7.cc. Unless there's an
> objection from a libstdc++ maintainer the patch is OK if you
> include <cstdio> in 7.cc.
>
In practice, <fstream> also does it as an implementation detail, but I
agree with Janis.
Paolo.