summaryrefslogtreecommitdiff
path: root/security/HElib/patches/patch-NumbTh.h
blob: 52884a12b9060f1a2eb71115cbb3888df09ded59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-NumbTh.h,v 1.2 2014/09/24 12:39:28 jperkin Exp $

--- NumbTh.h.orig	2013-04-30 21:31:26.000000000 +0000
+++ NumbTh.h
@@ -32,13 +32,18 @@
 #include <NTL/mat_GF2E.h>
 #include <NTL/lzz_pXFactoring.h>
 #include <NTL/GF2XFactoring.h>
+#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
+#include <unordered_map>
+#else
 #include <tr1/unordered_map>
+using std::tr1::unordered_map;
+#endif
 #include <string>
 NTL_CLIENT
 
 
 //! @typedef
-typedef tr1::unordered_map<string, const char *> argmap_t;
+typedef unordered_map<string, const char *> argmap_t;
 
 
 //! @brief Code for parsing command line arguments.