From 013078a02f9794df5f3ee6258a7ed60208e7a07b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 12 Nov 2020 12:06:03 +0200 Subject: [PATCH] - fixed compilation with MSVC 14.28.29333 from VS2019 16.8.0 include\algorithm(7419,17): error C3892: '_First': you cannot assign to a variable that is const (compiling source file src\rendering\hwrenderer\scene\hw_drawlist.cpp) --- src/common/utility/tarray.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/utility/tarray.h b/src/common/utility/tarray.h index ebe83f9844..c44e06c434 100644 --- a/src/common/utility/tarray.h +++ b/src/common/utility/tarray.h @@ -98,8 +98,7 @@ public: T& operator[](difference_type i) { return m_ptr[i]; } const T& operator[](difference_type i) const { return m_ptr[i]; } - T &operator*() { return *m_ptr; } - const T &operator*() const { return *m_ptr; } + T &operator*() const { return *m_ptr; } T* operator->() { return m_ptr; } protected: