Summary: std.typecons.Unique is using writeln without importing
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from simendsjo <> 2012-03-29 10:52:51 PDT ---
version(unittest) import core.vararg, std.stdio;

struct Unique(T)

    this(RefT p)
        writeln("Unique constructor with rvalue");
        _p = p;

I guess those writeln's should be removed, or at least wrapped in
version(unittest) blocks (or debug(typecons) or something)

The following cannot even compile, so I guess no one is using it...
import std.typecons;
void main() { Unique!int i = 10; }

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

Reply via email to