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 » What does this compiling error mean exactly?
Re: What does this compiling error mean exactly? [message #55346 is a reply to message #55344] Sun, 01 November 2020 17:52 Go to previous message
Klugier is currently offline  Klugier
Messages: 1106
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello David,

Vector requires from the type it holds to be movable. In your case following lines should fix the compilation isse:
struct Stage : Moveable<Stage> {
	int	stageID;
	int	stageDuration;
};


For more info please read following Core tutorial page related to Vector container. Alternatively you could replace Vector with Array and then the Movable pattern is not required, however you will lose performance. For more info please read chapters related to Array.

You could also read article about Moveable. It describes in details why the compilation error is there.

Klugier


U++ - one framework to rule them all.

[Updated on: Sun, 01 November 2020 18:51]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Convert struct to string and reconstruct a struct from string
Next Topic: Creating a com object
Goto Forum:
  


Current Time: Mon Aug 25 18:40:02 CEST 2025

Total time taken to generate the page: 0.06194 seconds