foo is not an lvalue

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Apr 17 18:39:56 PDT 2013


On 04/17/2013 06:02 PM, bearophile wrote:
> Ellery Newcomer:
>
>> dmd from master (a few days ago) gives:
>>
>>  Error: foo()() is not an lvalue
>>
>>
>> wut?
>
> I think you need to write:
>
> auto a = &foo!();
>
> Bye,
> bearophile

wouldn't that be infinitely recursing template instantiation?


More information about the Digitalmars-d-learn mailing list