[Issue 5522] New: std.range.zip fails on arrays of Object.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 3 06:46:49 PST 2011


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: nobody at puremagic.com
        ReportedBy: blood.of.life at gmail.com


--- Comment #0 from Bernard Helyer <blood.of.life at 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: -------


More information about the Digitalmars-d-bugs mailing list