www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14605] New: RefAppender fails isOutputRange

https://issues.dlang.org/show_bug.cgi?id=14605

          Issue ID: 14605
           Summary: RefAppender fails isOutputRange
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: ag0aep6g gmail.com

----
import std.range: isOutputRange;
import std.array: Appender, RefAppender;
static assert(isOutputRange!(Appender!(int[]), int)); /* passes */
static assert(isOutputRange!(RefAppender!(int[]), int)); /* fails */
----

Pull request on the way.

--
May 18 2015