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 » Vector a user defined struct for XML persistency
Re: Vector a user defined struct for XML persistency [message #55197 is a reply to message #55196] Sat, 17 October 2020 10:33 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1226
Registered: August 2007
Senior Contributor
Hello,

You have to mark the struct as Moveable. (Vector requires its elements to be moveable. Array doesn't.)

struct Phase : Moveable<Phase> // <--
{
	int 			id;
	double 			split;
	Vector<int> 		signal_groups;
	int			min_green;
	int			all_red;
	int			amber;
	int			skip;
	void Xmlize(XmlIO& xml);
};




Best regards,
Oblivion


[Updated on: Sat, 17 October 2020 10:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: How to construct a struct to get data from this XML?
Next Topic: Looking for examples to split string into container
Goto Forum:
  


Current Time: Tue Aug 26 16:21:15 CEST 2025

Total time taken to generate the page: 0.05349 seconds