|
|
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: 1076 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: Thu Apr 18 13:42:19 CEST 2024
Total time taken to generate the page: 0.01971 seconds
|
|
|