Looks like wrong error message

2018-01-28 Thread welkam via Digitalmars-d-learn
Error says that it cant deduce function from argument types but in reality it fails to meet function template constraints. In this case !is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void) In human terms it means that arguments are not the same type. Is this require b

Re: Looks like wrong error message

2018-01-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, January 28, 2018 20:02:48 welkam via Digitalmars-d-learn wrote: > Error says that it cant deduce function from argument types but > in reality it fails to meet function template constraints. In > this case !is(CommonType!(staticMap!(ElementType, > staticMap!(Unqual, Ranges))) == void) >

Re: Looks like wrong error message

2018-01-28 Thread welkam via Digitalmars-d-learn
On Sunday, 28 January 2018 at 20:42:52 UTC, Jonathan M Davis wrote: There is nothing incorrect about the error message. The compiler looked at all of the functions in the overload set, and it found none that matched. The reason that it found none that matched was because it couldn't find any

Re: Looks like wrong error message

2018-01-28 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Jan 28, 2018 at 10:53:39PM +, welkam via Digitalmars-d-learn wrote: > On Sunday, 28 January 2018 at 20:42:52 UTC, Jonathan M Davis wrote: [...] > > However, you're not going to get an error message that says anything > > like "the arguments aren't the same type." The compiler doesn't >

Re: Looks like wrong error message

2018-01-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, January 28, 2018 16:08:17 H. S. Teoh via Digitalmars-d-learn wrote: > On Sun, Jan 28, 2018 at 10:53:39PM +, welkam via Digitalmars-d-learn wrote: > > On Sunday, 28 January 2018 at 20:42:52 UTC, Jonathan M Davis wrote: > [...] > > > > However, you're not going to get an error messag