U++ framework
Do not panic. Ask here before giving up.

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 #49382 is a reply to message #49381] Thu, 01 February 2018 15:01 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1267
Registered: August 2007
Senior Contributor
Then it seems that maybe you are accidentally assigning an expression to a callback (Gate/Event/Function); You need to find it.
GCC will give you the same error in such cases.

E.g. A simple example:

Event<> event;

event << 2 * 2; // Will give you the exact same error 



Best regards,

Oblivion


[Updated on: Thu, 01 February 2018 15:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I've been using FindFile wrong all these years
Next Topic: Vector<T>::Set(int i, T&& x) proposal
Goto Forum:
  


Current Time: Thu Jun 18 05:11:57 GMT+2 2026

Total time taken to generate the page: 0.00710 seconds