ofstream crash with libstdc++

Yann Droneaud yann@droneaud.fr
Tue Feb 19 11:22:00 GMT 2013


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




More information about the Libc-help mailing list