#include <Core/Core.h> using namespace Upp; struct A : Moveable<A> { struct B : Moveable<B> { struct C : Moveable<C> { int c1; int c2; double c3; void Jsonize(JsonIO& json) { json ("c1", c1) ("c2", c2) ("c3", c3); } }; VectorMap<int, C> c; void Jsonize(JsonIO& json) { json ("c", c); } }; VectorMap<int, B> b; // <-- VectorMap leads to compiling failed //Vector<B> b; // Vector compiles Ok! void Jsonize(JsonIO& json) { json ("b", b); } }; CONSOLE_APP_MAIN { A a; }
Report message to a moderator
map.Add(key, pick(value));
map.Add(key, value);