From 0778feb627c36638963861844875ad482225fff5 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Tue, 11 Jul 2017 16:16:43 +0200
Subject: [PATCH] fix including functional header

---
 alib2std/src/functional                      | 11 +++++++++++
 alib2std/test-src/extensions/CompareTest.cpp |  1 +
 alib2std/test-src/extensions/TupleTest.cpp   |  2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 alib2std/src/functional

diff --git a/alib2std/src/functional b/alib2std/src/functional
new file mode 100644
index 0000000000..a822b0ea06
--- /dev/null
+++ b/alib2std/src/functional
@@ -0,0 +1,11 @@
+#ifndef __ALIB_INTERNAL_STD_EXTENSION_
+	#define __ALIB_INTERNAL_STD_EXTENSION_
+
+	#include "functional"
+
+	#undef __ALIB_INTERNAL_STD_EXTENSION_
+#else
+
+	#include <bits/../functional>
+
+#endif /* __ALIB_INTERNAL_STD_EXTENSION_ */
diff --git a/alib2std/test-src/extensions/CompareTest.cpp b/alib2std/test-src/extensions/CompareTest.cpp
index 7f91019f86..dbf8bc58ff 100644
--- a/alib2std/test-src/extensions/CompareTest.cpp
+++ b/alib2std/test-src/extensions/CompareTest.cpp
@@ -3,6 +3,7 @@
 #include <vector>
 #include <pair>
 #include <map>
+#include <tuple>
 
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( CompareTest, "bits" );
diff --git a/alib2std/test-src/extensions/TupleTest.cpp b/alib2std/test-src/extensions/TupleTest.cpp
index bef132abed..d3a15c23bf 100644
--- a/alib2std/test-src/extensions/TupleTest.cpp
+++ b/alib2std/test-src/extensions/TupleTest.cpp
@@ -1,5 +1,5 @@
 #include "TupleTest.h"
-#include <random>
+#include <tuple>
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( TupleTest, "bits" );
 CPPUNIT_TEST_SUITE_REGISTRATION( TupleTest );
-- 
GitLab