|
|
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  |
 |
Klugier
Messages: 1099 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
|
|
|
Goto Forum:
Current Time: Fri Apr 25 19:03:48 CEST 2025
Total time taken to generate the page: 0.01023 seconds
|
|
|