From: Stephen Seo Date: Wed, 6 Nov 2019 04:34:37 +0000 (+0900) Subject: Minor fix to size pointer in TSLQueue iterator X-Git-Tag: 1.0~131 X-Git-Url: https://git.seodisparate.com/stephenseo/img/favicon.ico?a=commitdiff_plain;h=742db465dd0b6e570923d6912ba1ae265814b3ac;p=UDPConnection Minor fix to size pointer in TSLQueue iterator Prevent pointer change errors by making the pointer itself const. --- 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; };