a while back, a guy i worked with came up with a really cool bit of code; it would tell you if one class inherited from another, and this test was done at compile time.
it was used like this:
Inheritance<Base,Derived>::exists
i could really use it now, but i don't have his code and i don't know how he did it. any ideas?