diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-08-07 23:24:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 23:24:07 -0700 |
commit | 047e75b485ad16a729083c210ba4064943d2e7c5 (patch) | |
tree | cbd0ac11a061cb6da426e44bd6684f6115fecc88 /src/util | |
parent | 95e9918607ed879347bb250ecbaa3c5c557d71b4 (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/util')
-rw-r--r-- | src/util/random.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/random.h b/src/util/random.h index 031ef06b7..480271c03 100644 --- a/src/util/random.h +++ b/src/util/random.h @@ -21,8 +21,6 @@ #ifndef __CVC4__UTIL__RANDOM_H #define __CVC4__UTIL__RANDOM_H -#include "base/tls.h" - namespace CVC4 { class Random @@ -33,7 +31,7 @@ class Random /* Get current RNG (singleton). */ static Random& getRandom() { - static CVC4_THREAD_LOCAL Random s_current(0); + static thread_local Random s_current(0); return s_current; } |