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++ Widgets - General questions or Mixed problems » Controls & classes design questions
Re: Controls & classes design questions [message #11070 is a reply to message #11044] Sat, 18 August 2007 00:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mrjt wrote on Thu, 16 August 2007 05:46


3) No Ctrl or derived class is Moveable because they contain internal pointers to other Ctrls. However, what is not clear from the docs is that virtual methods are Moveable, but abstract methods are not (ie. virtual void Abstract() = 0; is not allowed). Array can store non-moveable types, but Vector et al. cannot.



Actually, classes with virtual methods are explicitly NOT MOVEABLE.

http://www.ultimatepp.org/srcdoc$Core$Moveable$en-us.html

Note that while with both MSC and GCC on x86, technically there is a little problem, we thought it is better to stay on the safer side, while "moving" objects with virtual methods makes only a little benefit.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multithreading ans updating widgets
Next Topic: DropList bug when removing last item
Goto Forum:
  


Current Time: Fri Aug 29 21:00:23 CEST 2025

Total time taken to generate the page: 0.04454 seconds