On 2013-10-11 07:49, luminousone wrote:
> import std.traits;
>
> bool ChildInheritsFromParent( parent, child )( ) {
>
> foreach ( k, t; BaseClassesTuple!child ) {
> if( typeid(t) == typeid(parent) )
> return true;
> }
> return false;
> }
That will perform a runtime check and not a compile time check.
--
/Jacob Carlborg