Use _Pairib in VC versions below 14.2.
This commit is contained in:
parent
1ad1f71d2f
commit
05c2b59c3a
|
@ -64,7 +64,12 @@ bool CBreakpoints::WBPAdd(uint32_t address)
|
|||
bool CBreakpoints::AddExecution(uint32_t address, bool bTemporary)
|
||||
{
|
||||
PreUpdateBP();
|
||||
#if _MSC_VER >= 1920 // Visual Studio 2019 deprecates _Pairib
|
||||
auto res = m_Execution.insert(breakpoint_t::value_type(address, bTemporary));
|
||||
#else
|
||||
breakpoints_t::_Pairib res = m_Execution.insert(breakpoint_t::value_type(address, bTemporary));
|
||||
#endif // _MSC_VER
|
||||
|
||||
if (!res.second && !bTemporary)
|
||||
{
|
||||
res.first->second = true;
|
||||
|
|
Loading…
Reference in New Issue