www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5340] New: isOutputRange!(Appender!string, int) must be false.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5340

           Summary: isOutputRange!(Appender!string, int) must be false.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com


--- Comment #0 from SHOO <zan77137 nifty.com> 2010-12-10 03:19:59 PST ---
This code doesn't work at trunk(r2215):
-----
import std.range, std.array;

static assert(!isOutputRange!(Appender!string, int));

void main()
{
    Appender!string app;
    put(app, 1); // NG! but this can compile.
}
-----

Result:
$ main.d(3): Error: static assert  (!true) is false


Maybe, put(r, e) is broken, and this bug was added at r1755.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 10 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5340


SHOO <zan77137 nifty.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from SHOO <zan77137 nifty.com> 2010-12-10 03:26:29 PST ---
Fixed.

http://www.dsource.org/projects/phobos/changeset/2216

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