Basic example of "std.process.pipe" not working. Error: template instance `std.functional.pipe!()` error instantiating

Imperatorn johan_forsberg_86 at hotmail.com
Mon Oct 16 18:16:58 UTC 2023


On Monday, 16 October 2023 at 17:23:10 UTC, BoQsc wrote:
> https://dlang.org/library/std/process/pipe.html
>
> ```
> import std;
>
> void main()
> {
> 	auto p = pipe();
> 	
> }
> ```
> Output:
>
> ```
> /dlang/dmd/linux/bin64/../../src/phobos/std/functional.d(1272): 
> Error: template instance `std.functional.compose!()` does not 
> match template declaration `compose(fun...)`
>   with `fun = ()`
>   must satisfy the following constraint:
> `       fun.length > 0`
> onlineapp.d(5): Error: template instance 
> `std.functional.pipe!()` error instantiating
> ```

```d
import std.process;

void main()
{
	auto p = pipe();
	// do stuff
}
```


More information about the Digitalmars-d mailing list