The current constraint pair is:
if (!is(T : const(bool))
and
if ( is(T == bool)
This means that it is not possible to instantiate an Array with anything that is implicitly convertible to a bool, but isn't "bool":
//--------
import std.container;
struct S
{
bool b;
alias b this;
}
void main()
{
alias A = Array!S;
alias B = Array!(const bool);
}
main.d(11): Error: struct std.container.Array does not match any template declaration
main.d(12): Error: struct std.container.Array does not match any template declaration
Comment #1 by github-bugzilla — 2013-11-10T17:18:11Z