From 7ded74b1f3055ee5efaabafc026c62d42200d262 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 9 Dec 2016 09:41:12 +0100
Subject: [PATCH] Added missing <memory> includes.

Otherwise std::unique_ptr was not found on gcc 4.8.1
---
 MeshLib/Mesh.cpp                  | 2 ++
 MeshLib/MeshSearch/NodeSearch.cpp | 1 +
 MeshLib/MeshSurfaceExtraction.cpp | 2 ++
 Tests/ProcessLib/TestLIE.cpp      | 1 +
 4 files changed, 6 insertions(+)

diff --git a/MeshLib/Mesh.cpp b/MeshLib/Mesh.cpp
index 81e2c9aa306..cf353a98b15 100644
--- a/MeshLib/Mesh.cpp
+++ b/MeshLib/Mesh.cpp
@@ -14,6 +14,8 @@
 
 #include "Mesh.h"
 
+#include <memory>
+
 #include "BaseLib/RunTime.h"
 
 #include "Elements/Element.h"
diff --git a/MeshLib/MeshSearch/NodeSearch.cpp b/MeshLib/MeshSearch/NodeSearch.cpp
index 716c2537611..95c60c21a43 100644
--- a/MeshLib/MeshSearch/NodeSearch.cpp
+++ b/MeshLib/MeshSearch/NodeSearch.cpp
@@ -9,6 +9,7 @@
 
 #include "NodeSearch.h"
 
+#include <memory>
 #include <set>
 
 #include <logog/include/logog.hpp>
diff --git a/MeshLib/MeshSurfaceExtraction.cpp b/MeshLib/MeshSurfaceExtraction.cpp
index 11d55948de1..943b1800a87 100644
--- a/MeshLib/MeshSurfaceExtraction.cpp
+++ b/MeshLib/MeshSurfaceExtraction.cpp
@@ -14,6 +14,8 @@
 
 #include "MeshSurfaceExtraction.h"
 
+#include <memory>
+
 #include <boost/math/constants/constants.hpp>
 
 #include <logog/include/logog.hpp>
diff --git a/Tests/ProcessLib/TestLIE.cpp b/Tests/ProcessLib/TestLIE.cpp
index 306d2c61eee..e74a2c64d74 100644
--- a/Tests/ProcessLib/TestLIE.cpp
+++ b/Tests/ProcessLib/TestLIE.cpp
@@ -8,6 +8,7 @@
  */
 
 #include <cmath>
+#include <memory>
 
 #include <gtest/gtest.h>
 
-- 
GitLab