Error: func(const(A) a) is not callable using argument types (const(A)

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 30 03:33:34 PDT 2017


On Tuesday, 30 May 2017 at 10:20:53 UTC, Andrew Edwards wrote:
> Sorry, rough day. Could someone please explain what this means 
> and how do go about resolving it?
>
> Thanks,
> Andrew

If you want to resolve it just do

     const label_size = CalcTextSize(...);

but as others have mentioned make sure it is the right type 
(although if they are functionally identical it won't matter).


More information about the Digitalmars-d-learn mailing list