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 » Problem with Vector::Add (pick/clone semantics)
Re: Problem with Vector::Add (pick/clone semantics) [message #52235 is a reply to message #52218] Tue, 13 August 2019 09:08 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
I made it work, even without pick:

	const static VectorMap<String, Vector<String>> MY_MAP = {
	    {"s1", Vector<String>{"s11", "s12", "s13", "s14"}},
	    {"s2", Vector<String>{"s21", "s22", "s23", "s24"}},
	    {"s3", Vector<String>{"s31", "s32", "s33", "s34"}},
	    {"s4", Vector<String>{"s41", "s42", "s43", "s44"}},
	    {"s5", Vector<String>{"s51", "s52", "s53", "s54"}}
	};
	


(making this work is perhaps slight departure from "use clone/pick always", OTOH I feel uneasy altering initialization data (by pick) anyway).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vector< Vector<int> > compilation error
Next Topic: SHA1 Doesn't work any more for data over 65536 bytes
Goto Forum:
  


Current Time: Sat May 18 17:24:30 CEST 2024

Total time taken to generate the page: 0.01303 seconds