Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1093
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: Tue May 07 23:06:57 CEST 2024

Total time taken to generate the page: 0.02809 seconds