Inheritance diagram for general_exception:

Public Types | |
| typedef T | class_type |
Public Member Functions | |
| general_exception (const T &obj) | |
| const T & | get_object () const |
This class allows different exceptions for a class. general_exception_of_type is limited to one exception per type. This is solved by taking another template parameter so you can do this:
typedef general_exception<painter_holder, 0> no_painter;
typedef general_exception<painter_holder, 1> invalid_painter_cast;
|
by Steven Weiss. You can contact me at steven11@gmx.de. |