www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - LockingTextWriter not an output range?

reply kookman <thekookman gmail.com> writes:
The below static assert fails. Is this expected? Not the way I 
read the docs.

static assert (isOutputRange(typeof(stdout.lockingTextWriter), 
char));
Apr 17 2018
next sibling parent kookman <thekookman gmail.com> writes:
Typo corrected:

static assert (isOutputRange!(typeof(stdout.lockingTextWriter), 
char));
Apr 17 2018
prev sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 18/04/2018 6:28 PM, kookman wrote:
 The below static assert fails. Is this expected? Not the way I read the 
 docs.
 
 static assert (isOutputRange(typeof(stdout.lockingTextWriter), char));
static assert (isOutputRange!(typeof(stdout.lockingTextWriter()), char));
Apr 17 2018
parent kookman <thekookman gmail.com> writes:
On Wednesday, 18 April 2018 at 06:40:15 UTC, rikki cattermole 
wrote:
 On 18/04/2018 6:28 PM, kookman wrote:
 The below static assert fails. Is this expected? Not the way I 
 read the docs.
 
 static assert (isOutputRange(typeof(stdout.lockingTextWriter), 
 char));
static assert (isOutputRange!(typeof(stdout.lockingTextWriter()), char));
Ah - thank you! (slapping my forehead for wasted 2 hours)
Apr 18 2018