[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PROGRAMMING: C++ ios::failure class - ?




Hi,

Well, I'm playing here with a small program that's using the standard
ANSI C++ exception (nested) class - ios::failure (or am I wrong here?).
For that and more the "included" files are: 
#include <iostream>       
#include <fstream>        
#include <string>         
#include <stdexcept>      
#include <typeinfo>

g++ is complaining that: cp.cpp:29: no method `ios::failure' . This is
not supppposed to be a method but a nested class.

I've "grep"ed the whole /usr/include/g++-2/ directory but found almost
no sign of this nested class decleration anywhere but only inside:

/usr/include/g++-2/streambuf.h : (pay attention that this is a remark!)
/* #define _G_IO_THROW */ /* Not implemented:  ios::failure */

My Questions: 
1) Is that class defined somewhere on my RHv6.1 ? 
2) How come the standard isn't implemented on Linux ? is it a work
undergoing? was this considered somehow unimportant? (I've also learned
that the standard <limits> file isn't implemented)

Thanks,
Boaz.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il