I'm having trouble instantiating a RedBlackTree container with chars, but it works with ints:
import std.stdio;
import std.container;
void main()
{
auto r1 = redBlackTree!(int)(); // works
auto r2 = redBlackTree!(char)(); // error instantiating
}
I'm using DMD32 D Compiler v2.060.
Any thoughts? Thanks.
char
to be comparable trydchar
instead) – Verdellverdererbyte
orubyte
, and if you need an associative container from that toT
considerT[256]
or(T*)[256]
, it might be smaller and will be faster than a tree. – Listing