Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 18, 2018 LockingTextWriter not an output range? | ||||
---|---|---|---|---|
| ||||
The below static assert fails. Is this expected? Not the way I read the docs. static assert (isOutputRange(typeof(stdout.lockingTextWriter), char)); |
April 18, 2018 Re: LockingTextWriter not an output range? | ||||
---|---|---|---|---|
| ||||
Posted in reply to kookman | Typo corrected: static assert (isOutputRange!(typeof(stdout.lockingTextWriter), char)); |
April 18, 2018 Re: LockingTextWriter not an output range? | ||||
---|---|---|---|---|
| ||||
Posted in reply to kookman | 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)); |
April 19, 2018 Re: LockingTextWriter not an output range? | ||||
---|---|---|---|---|
| ||||
Posted in reply to rikki cattermole | 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)
|
Copyright © 1999-2021 by the D Language Foundation