This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: ofstream crash with libstdc++
- From: "Yann Droneaud" <yann at droneaud dot fr>
- To: "Mahmood Naderan" <nt_mahmood at yahoo dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Tue, 19 Feb 2013 12:21:48 +0100
- Subject: Re: ofstream crash with libstdc++
- References: <1361271141.31313.YahooMailNeo@web163004.mail.bf1.yahoo.com>
Hi,
> ??? .....
> ???? std::string f;
> ???? std::fstream
> fout;
> ???? f = "filter";
> ???? fout.open(f.c_str(), std::fstream::app | std::fstream::out);
Why not checking if fout.open() return NULL ?
Regards.
--
Yann Droneaud