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 » JsonizeStringMap Error
JsonizeStringMap Error [message #56078] Thu, 21 January 2021 16:36 Go to next message
fermium is currently offline  fermium
Messages: 8
Registered: October 2018
Promising Member
Hello! I encountered the following bug:
struct A : Moveable<A>, VectorMap<String, Vector<String>> {
	void Jsonize(JsonIO &json) {
		StringMap(json, *this);
	}
};


The compiler throws an error:
.../upp/uppsrc/Core/Vcont.h (195): error: call to implicitly-deleted copy constructor of 'Upp::Vector<Upp::String>'


I accessed the StringMap function and found this line of code

To fix the compilation error, I suggest doing this:
//map.Add(key, value);       //compilation error
map.Add(key, pick(value));   //it works


If this is a suitable change, please implement it
Re: JsonizeStringMap Error [message #56079 is a reply to message #56078] Thu, 21 January 2021 17:31 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thank you, makes sense, accepted. Welcome to contributors list.

Mirek
Previous Topic: SetConfigGroup
Next Topic: WebSocket Clear method don't clear error
Goto Forum:
  


Current Time: Thu Mar 28 14:17:16 CET 2024

Total time taken to generate the page: 0.01051 seconds