From f3f4871275aff3d4c29fdef679456956aa5244f5 Mon Sep 17 00:00:00 2001
From: fearlessTobi <thm.frey@gmail.com>
Date: Wed, 5 Sep 2018 02:19:55 +0200
Subject: [PATCH] Fix compilation errors

---
 src/common/file_util.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/file_util.h b/src/common/file_util.h
index f62ab6cfd..3e7faa43b 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -174,7 +174,7 @@ public:
     bool Close();
 
     template <typename T>
-    size_t ReadArray(T* data, size_t length) const {
+    size_t ReadArray(T* data, size_t length) {
         static_assert(std::is_trivially_copyable_v<T>,
                       "Given array does not consist of trivially copyable objects");
 
@@ -208,7 +208,7 @@ public:
     }
 
     template <typename T>
-    size_t ReadBytes(T* data, size_t length) const {
+    size_t ReadBytes(T* data, size_t length) {
         static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable");
         return ReadArray(reinterpret_cast<char*>(data), length);
     }