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++ Callbacks and Timers » "Function" question
Re: "Function" question [message #47716 is a reply to message #47715] Thu, 09 March 2017 18:33 Go to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Well, it is solved
void Init(double data) {
	this->data = data;
	function = [=](double x) {return Calc(x);};
}

Now MySource is inside main model, so it does not get destroyed after initialization Rolling Eyes.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Previous Topic: Event.execute
Next Topic: PostCallback in constructor
Goto Forum:
  


Current Time: Wed Aug 27 01:05:09 CEST 2025

Total time taken to generate the page: 0.08530 seconds