more detailed io state; new_handler and thread safety
Matthias Weiss
matthias.weiss@inode.at
Wed Apr 3 13:18:00 GMT 2002
Hi everyone,
I got stuck with two problems and hope that
some one could give me pointer to the right direction.
1.) How can I determine what caused a stream to get
the ios_base::failbit or ios_base::badbit?
E.g. how can I find out if opening a file failed due
to permission problems?
2.) I found no clear statement in my literature about
the thread safety of std::set_new_handler but I suspect
it is not thread safe. What is an approved way of having
several threads with each having their own new_handler
function set?
thanx for any help
matthias
More information about the Libstdc++
mailing list