jamesge commented on issue #1084: FlatMap::erase在特定情况下,可能会出现Bug。
URL: https://github.com/apache/incubator-brpc/issues/1084#issuecomment-613350605
 
 
   > 改成“析构第一个node;用第二个node拷贝构造第一个node;”
   之后不还是要析构“第二个node”么?如果拷贝构造也仅是拷贝下id,第二个node析构后,留在第一个node里的id仍然是野的。
   
   这里的问题是放在FlatMap中的对象没有正确地实现operator=(以及拷贝构造函数)。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to