Skip to content

Commit 26b76dd

Browse files
committed
修正一处代码错误
1 parent b1b7608 commit 26b76dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TrafficMonitor/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class CCommon
337337
template<class T>
338338
static void RemoveVectorDuplicateItem(vector<T>& vec)
339339
{
340-
std::set<int> si;
340+
std::set<T> si;
341341
for (auto it = vec.begin(); it != vec.end();)
342342
{
343343
if (si.count(*it) == 0)//这里判断当前元素是否已经出现过,若没有出现过则将该元素保留,并做标记

0 commit comments

Comments
 (0)