On Tue, Jun 9, 2009 at 2:05 PM, Frank Mori Hess <frank.hess@nist.gov> wrote:

It sounds like is_base_of and BOOST_STATIC_ASSERT would be enough to catch the
errors at least?  That is, you could make your own macro that does the type
checking before passing the arguments on to BEGIN_EVENT_TABLE.

This actually won't work because technically wxWindow and wxFrame are both base classes of MainWindow. The difference is the number of "hops" between them. For example, wxWindow is further away from MainWindow in the inheritance diagram than wxFrame, but I don't think there is any way to measure this at compile time.

Looks like I may just have to suck it up.