U++ framework
Do not panic. Ask here before giving up.

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: 14290
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: Sun Apr 26 22:39:47 GMT+2 2026

Total time taken to generate the page: 0.00531 seconds