From c6a7924b80f25227212d493d367a8c3bec16e4ee Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 21 Jan 2017 12:10:24 +0000 Subject: [PATCH] Fix SafeCountable callstack tracking --- src/safe_ptr.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/safe_ptr.hh b/src/safe_ptr.hh index bafa1434..efe5da80 100644 --- a/src/safe_ptr.hh +++ b/src/safe_ptr.hh @@ -66,7 +66,7 @@ struct SafeCountablePolicy kak_assert(sc->m_count >= 0); #ifdef SAFE_PTR_TRACK_CALLSTACKS auto it = std::find_if(sc->m_callstacks.begin(), sc->m_callstacks.end(), - [=](const Callstack& cs) { return cs.ptr == ptr; }); + [=](const SafeCountable::Callstack& cs) { return cs.ptr == ptr; }); kak_assert(it != sc->m_callstacks.end()); sc->m_callstacks.erase(it); #endif @@ -76,7 +76,7 @@ struct SafeCountablePolicy { #ifdef SAFE_PTR_TRACK_CALLSTACKS auto it = std::find_if(sc->m_callstacks.begin(), sc->m_callstacks.end(), - [=](const Callstack& cs) { return cs.ptr == from; }); + [=](const SafeCountable::Callstack& cs) { return cs.ptr == from; }); kak_assert(it != sc->m_callstacks.end()); it->ptr = to; #endif