It is said in documentation of std.traits module that "BaseTypeTuple!(Object) returns the empty type tuple."
But in D 2.052 the follownig code fails to compile:
import std.traits, std.typetuple, std.stdio;
void main()
{
writeln(typeid(BaseClassesTuple!Object));
}
The error message is:
<...>\src\phobos\std\traits.d(1772): Error: tuple index 0 exceeds 0
Comment #1 by piv — 2011-03-21T12:43:10Z
Created attachment 932
Trivial patch to fix an issue
Comment #2 by piv — 2011-03-21T12:47:58Z
(In reply to comment #0)
> It is said in documentation of std.traits module that "BaseTypeTuple!(Object)
> returns the empty type tuple."
I made a mistake, should be "BaseClassesTuple!(Object)"
Comment #3 by andrej.mitrovich — 2013-01-08T13:22:59Z