http://d.puremagic.com/issues/show_bug.cgi?id=5522

           Summary: std.range.zip fails on arrays of Object.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: blood.of.l...@gmail.com


--- Comment #0 from Bernard Helyer <blood.of.l...@gmail.com> 2011-02-03 
06:44:31 PST ---
import std.range;

void main()
{
    auto a = new Object[10];
    zip(a);
}

Results in the following error:

/usr/include/d/std/range.d(2814): Error: template std.conv.emplace(T,Args...)
if (!is(T == class)) does not match any function template declaration
/usr/include/d/std/range.d(2814): Error: template std.conv.emplace(T,Args...)
if (!is(T == class)) cannot deduce template function from argument types
!()(Object*,Object)
/usr/include/d/std/range.d(2818): Error: template std.conv.emplace(T,Args...)
if (!is(T == class)) does not match any function template declaration
/usr/include/d/std/range.d(2818): Error: template std.conv.emplace(T,Args...)
if (!is(T == class)) cannot deduce template function from argument types
!()(Object*)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to