Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

general_exception Struct Template Reference

This class allows different exceptions for a class . More...

Inheritance diagram for general_exception:

general_exception_of_type background_wnd_exception List of all members.

Public Types

typedef T class_type

Public Member Functions

 general_exception (const T &obj)
const T & get_object () const

Detailed Description

template<class T, int num>
struct win32::gui::bg_wnd::general_exception< T, num >

This class allows different exceptions for a class .

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.