From c58f1b09d1bcdd6564c2239046c1d425ccf4d8d3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 5 Dec 2017 21:23:39 +0100 Subject: [PATCH] Allow RW access to Vector's data. --- server/TracyVector.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp index 41b808a0..ee1ed662 100644 --- a/server/TracyVector.hpp +++ b/server/TracyVector.hpp @@ -57,7 +57,8 @@ public: bool empty() const { return m_size == 0; } size_t size() const { return m_size; } - const T* data() { return m_ptr; }; + T* data() { return m_ptr; } + const T* data() const { return m_ptr; }; T* begin() { return m_ptr; } const T* begin() const { return m_ptr; }