Summary: std.array.empty for associative arrays too
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from 2011-07-30 06:57:28 PDT ---
I suggest to extend std.array.empty to work with associative arrays too:

import std.array;
void main() {
    int[] a;
    assert(a.empty); // OK
    int[int] aa;
    assert(aa.empty); // Error

DMD 2.054:
test.d(6): Error: template std.array.empty(T) does not match any function
template declaration
test.d(6): Error: template std.array.empty(T) cannot deduce template function
from argument types !()(int[int])

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to