Skip to content

Commit

Permalink
Fix C++03 incompatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Foxhall <[email protected]>
  • Loading branch information
hallfox committed Nov 6, 2024
1 parent c3031be commit 182a8ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/groups/mqb/mqbnet/mqbnet_tcpsessionfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,8 @@ TCPSessionFactory::PortManager::addChannelContext(bmqst::StatContext* parent,
parent->addSubcontext(
portConfig.storeExpiredSubcontextValues(true));
channelStatContext = portStatContext->addSubcontext(statConfig);
d_portMap.emplace(port, PortContext({portStatContext, 1}));
PortContext portContext = {portStatContext, 1};
d_portMap.emplace(port, portContext);
}

return channelStatContext;
Expand Down

0 comments on commit 182a8ab

Please sign in to comment.