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++ Library : Other (not classified elsewhere) » friend window
Re: friend window [message #17604 is a reply to message #17598] Fri, 22 August 2008 12:05 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
As far as I know, you can't use a reference to a non-moveable type as a parameter to a callback.

You could pass it as a pointer, but I would suggest adding a reference member to ItemNotes:
.h:
class ItemNotes : public WithItemNotes<TopWindow> {
	typedef ItemNotes CLASSNAME;

        Download_Manager_Window &download_manager_window;
...
};

.cpp:
	ItemNotes::ItemNotes(int item_id,Download_Manager_Window &_download_manager_window) : download_manager_window(_download_manager_window)
{
// Constructor
}
 
Read Message
Read Message
Read Message
Previous Topic: opening other programs
Next Topic: program hangs [label]
Goto Forum:
  


Current Time: Sun Jul 20 23:18:54 CEST 2025

Total time taken to generate the page: 0.03798 seconds