From f9df2bee2ffa9a1619a54c71a75409c43b16af07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 8 Jan 2019 17:38:21 +0100
Subject: [PATCH] Use C++11 unordered_{map,set} instead of boost's

---
 dynare++/parser/cc/tree.hh      | 8 ++++----
 dynare++/src/dynare_model.cc    | 1 +
 dynare++/src/dynare_model.hh    | 4 ++--
 dynare++/src/planner_builder.hh | 2 +-
 4 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/dynare++/parser/cc/tree.hh b/dynare++/parser/cc/tree.hh
index d8def98891..9517d4a976 100644
--- a/dynare++/parser/cc/tree.hh
+++ b/dynare++/parser/cc/tree.hh
@@ -6,15 +6,15 @@
 #include <vector>
 #include <set>
 #include <map>
-#include <boost/unordered_map.hpp>
-#include <boost/unordered_set.hpp>
+#include <unordered_map>
+#include <unordered_set>
 #include <cstdio>
 
 namespace ogp
 {
 
-  using boost::unordered_set;
-  using boost::unordered_map;
+  using std::unordered_set;
+  using std::unordered_map;
   using std::vector;
   using std::set;
   using std::map;
diff --git a/dynare++/src/dynare_model.cc b/dynare++/src/dynare_model.cc
index 1b40fae1d9..7038f118c9 100644
--- a/dynare++/src/dynare_model.cc
+++ b/dynare++/src/dynare_model.cc
@@ -13,6 +13,7 @@
 #include <string>
 #include <cmath>
 #include <climits>
+#include <ostream>
 
 using namespace ogdyn;
 
diff --git a/dynare++/src/dynare_model.hh b/dynare++/src/dynare_model.hh
index 5321bd6230..6f8c51fe33 100644
--- a/dynare++/src/dynare_model.hh
+++ b/dynare++/src/dynare_model.hh
@@ -13,11 +13,11 @@
 #include "GeneralMatrix.hh"
 
 #include <map>
-#include <boost/unordered_set.hpp>
+#include <unordered_set>
 
 namespace ogdyn
 {
-  using boost::unordered_set;
+  using std::unordered_set;
   using std::map;
 
   /** This represents an interval in a string by the pair of
diff --git a/dynare++/src/planner_builder.hh b/dynare++/src/planner_builder.hh
index b62b76a1eb..59e07d6d4c 100644
--- a/dynare++/src/planner_builder.hh
+++ b/dynare++/src/planner_builder.hh
@@ -8,7 +8,7 @@
 namespace ogdyn
 {
 
-  using boost::unordered_set;
+  using std::unordered_set;
   using std::map;
   using std::vector;
 
-- 
GitLab