summaryrefslogtreecommitdiff
path: root/src/expr
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-08-07 23:24:07 -0700
committerGitHub <noreply@github.com>2018-08-07 23:24:07 -0700
commit047e75b485ad16a729083c210ba4064943d2e7c5 (patch)
treecbd0ac11a061cb6da426e44bd6684f6115fecc88 /src/expr
parent95e9918607ed879347bb250ecbaa3c5c557d71b4 (diff)
Require Swig 3 (#2283)
Removes some hacks due to Swig 2's incomplete C++11 support and adds checks for version 3 at configuration time as well as in swig.h
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/node_manager.cpp2
-rw-r--r--src/expr/node_manager.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/expr/node_manager.cpp b/src/expr/node_manager.cpp
index 74701cf11..a40d1511b 100644
--- a/src/expr/node_manager.cpp
+++ b/src/expr/node_manager.cpp
@@ -37,7 +37,7 @@ using namespace CVC4::expr;
namespace CVC4 {
-CVC4_THREAD_LOCAL NodeManager* NodeManager::s_current = NULL;
+thread_local NodeManager* NodeManager::s_current = NULL;
namespace {
diff --git a/src/expr/node_manager.h b/src/expr/node_manager.h
index f7f3fb144..8bbf905a9 100644
--- a/src/expr/node_manager.h
+++ b/src/expr/node_manager.h
@@ -32,7 +32,6 @@
#include <string>
#include <unordered_set>
-#include "base/tls.h"
#include "expr/kind.h"
#include "expr/metakind.h"
#include "expr/node_value.h"
@@ -101,7 +100,7 @@ class NodeManager {
expr::NodeValueIDHashFunction,
expr::NodeValueIDEquality> NodeValueIDSet;
- static CVC4_THREAD_LOCAL NodeManager* s_current;
+ static thread_local NodeManager* s_current;
Options* d_options;
StatisticsRegistry* d_statisticsRegistry;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback