From d38559b339a833c90f0df484297ddc249d6c43df Mon Sep 17 00:00:00 2001 From: Nikita Kolotov Date: Wed, 14 Aug 2019 23:26:49 +0300 Subject: [PATCH] Code enhancement: add base class template qualifier Fixed build failure with "/permissive-" option caused by use of members of dependent base class template without qualifier. --- .../ReadDirectoryChanges/ThreadSafeQueue.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h b/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h index f805b5c5..5682fa05 100644 --- a/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h +++ b/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h @@ -31,6 +31,9 @@ template class CThreadSafeQueue : protected std::list { +protected: + using Base = std::list; + public: CThreadSafeQueue() { @@ -51,7 +54,7 @@ public: { { CComCritSecLock lock(m_Crit, true); - push_back(c); + Base::push_back(c); } ::SetEvent(m_hEvent); } @@ -59,13 +62,13 @@ public: bool pop(C& c) { CComCritSecLock lock( m_Crit, true ); - if (empty()) + if (Base::empty()) { return false; } - c = front(); - pop_front(); + c = Base::front(); + Base::pop_front(); return true; }