mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
jsonapi: fix std::map<T,U>
This commit is contained in:
parent
150af40e09
commit
70678ad508
@ -290,11 +290,11 @@ struct RsTypeSerializer
|
|||||||
// Use same allocator to avoid deep copy
|
// Use same allocator to avoid deep copy
|
||||||
RsGenericSerializer::SerializeContext kCtx(
|
RsGenericSerializer::SerializeContext kCtx(
|
||||||
nullptr, 0, ctx.mFlags, &allocator );
|
nullptr, 0, ctx.mFlags, &allocator );
|
||||||
serial_process<T>(j, kCtx, const_cast<T&>(kv.first), "key");
|
serial_process(j, kCtx, const_cast<T&>(kv.first), "key");
|
||||||
|
|
||||||
RsGenericSerializer::SerializeContext vCtx(
|
RsGenericSerializer::SerializeContext vCtx(
|
||||||
nullptr, 0, ctx.mFlags, &allocator );
|
nullptr, 0, ctx.mFlags, &allocator );
|
||||||
serial_process<U>(j, vCtx, const_cast<U&>(kv.second), "value");
|
serial_process(j, vCtx, const_cast<U&>(kv.second), "value");
|
||||||
|
|
||||||
if(kCtx.mOk && vCtx.mOk)
|
if(kCtx.mOk && vCtx.mOk)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user