Home » U++ Library support » U++ Core » Function.h: "expression cannot be used as a function"
Re: Function.h: "expression cannot be used as a function" [message #49379 is a reply to message #49378] |
Thu, 01 February 2018 11:16 |
Oblivion
Messages: 1093 Registered: August 2007
|
Senior Contributor |
|
|
Hello Giorgio,
Quote:
This is not clear to me: Gate is in Function.h (Core library of U++).
Because compiler is tracing back the error to its source. Event/Gate/Function are templates. Event and Gate are aliases for specialized Function templates. Basically, compiler has to go back to their declarations (in function.h) to inform you that it cannot instantiate them with the parameters you provided.
As Novo pointed out, there is probably an ill-defined Event/Gate/Function (or CALLBACK) in your code. Check your callbacks and verify their signatures (i.e., if they are taking correct parameters, returning the expected value types or just void.)
First check:
btnTrova <<= THISBACK1(ScanCommessa, macchina);
listaMetri <<= THISBACK(CambioPezzatura);
Are these callbacks defined correctly?
Then check other callbacks. E.g. look into StatusDetector.h, AggiungiComm.h (if you defined some callback there).
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Thu, 01 February 2018 11:51] Report message to a moderator
|
|
|
|
|
Function.h: "expression cannot be used as a function"
By: Giorgio on Wed, 31 January 2018 12:44
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Klugier on Wed, 31 January 2018 13:11
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Wed, 31 January 2018 14:26
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Novo on Wed, 31 January 2018 19:14
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 10:51
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Oblivion on Thu, 01 February 2018 11:16
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 14:13
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Oblivion on Thu, 01 February 2018 15:01
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 16:21
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Thu, 01 February 2018 16:25
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 16:29
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Thu, 01 February 2018 16:34
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 16:37
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Thu, 01 February 2018 17:43
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 18:05
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Wed, 31 January 2018 18:46
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 10:47
|
Goto Forum:
Current Time: Tue May 07 16:01:38 CEST 2024
Total time taken to generate the page: 0.02434 seconds
|