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 » Community » Newbie corner » CallbackN<> storing pointer to member function
Re: CallbackN<> storing pointer to member function [message #56165 is a reply to message #56164] Tue, 02 February 2021 17:44 Go to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
a Solution would be to change macro to :
#define REGISTER(FonctionName) RegisterFonction([&](ValueMap& payload, Command& dispatched){FonctionName(payload,dispatched);}, #FonctionName);

and change callbackN to Event<> but I don't like a lot this solution
 
Read Message
Read Message
Previous Topic: WebImage example not working
Next Topic: Get volume name of shares ...
Goto Forum:
  


Current Time: Sun Aug 24 13:40:54 CEST 2025

Total time taken to generate the page: 0.03872 seconds