Home » U++ Library support » U++ Core » JsonizeStringMap Error
JsonizeStringMap Error [message #56078] |
Thu, 21 January 2021 16:36 |
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
|
|
|
Goto Forum:
Current Time: Mon May 13 12:24:36 CEST 2024
Total time taken to generate the page: 0.03271 seconds
|