Commit fecfbbe1 by 夏楚 Committed by GitHub

修复windows下编译不过的bug

parent 4a6b5bc4
...@@ -25,9 +25,11 @@ ...@@ -25,9 +25,11 @@
*/ */
#include <list> #include <list>
#include <type_traits>
#include "RtpBroadCaster.h" #include "RtpBroadCaster.h"
#include "Util/util.h" #include "Util/util.h"
#include "Network/sockutil.h" #include "Network/sockutil.h"
using namespace std;
namespace ZL { namespace ZL {
namespace Rtsp { namespace Rtsp {
...@@ -116,7 +118,7 @@ RtpBroadCaster::RtpBroadCaster(const string &strLocalIp,const string &strApp,con ...@@ -116,7 +118,7 @@ RtpBroadCaster::RtpBroadCaster(const string &strLocalIp,const string &strApp,con
unordered_map<void * , onDetach > m_mapDetach_copy; unordered_map<void * , onDetach > m_mapDetach_copy;
{ {
lock_guard<recursive_mutex> lck(m_mtx); lock_guard<recursive_mutex> lck(m_mtx);
m_mapDetach_copy.swap(m_mapDetach); m_mapDetach_copy = std::move(m_mapDetach);
} }
for(auto &pr : m_mapDetach_copy){ for(auto &pr : m_mapDetach_copy){
pr.second(); pr.second();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论