diff --git a/lib/base/process.cpp b/lib/base/process.cpp index 089e41dae..37ca62935 100644 --- a/lib/base/process.cpp +++ b/lib/base/process.cpp @@ -199,8 +199,8 @@ void Process::IOThreadProc(int tid) #endif /* _WIN32 */ int i = 1; - std::pair kv; - BOOST_FOREACH(kv, l_Processes[tid]) { + typedef std::pair kv_pair; + BOOST_FOREACH(const kv_pair& kv, l_Processes[tid]) { const Process::Ptr& process = kv.second; #ifdef _WIN32 handles[i] = kv.first;