From 742db465dd0b6e570923d6912ba1ae265814b3ac Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 6 Nov 2019 13:34:37 +0900 Subject: [PATCH] Minor fix to size pointer in TSLQueue iterator Prevent pointer change errors by making the pointer itself const. --- cpp_impl/src/TSLQueue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp_impl/src/TSLQueue.hpp b/cpp_impl/src/TSLQueue.hpp index d2f09c9..d2e04c3 100644 --- a/cpp_impl/src/TSLQueue.hpp +++ b/cpp_impl/src/TSLQueue.hpp @@ -74,7 +74,7 @@ class TSLQueue { private: std::lock_guard lock; std::weak_ptr currentNode; - unsigned long long *msize; + unsigned long long *const msize; };