summaryrefslogtreecommitdiff
path: root/include/gudhi/Persistent_cohomology.h
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2018-09-05 12:52:26 +0200
committerGard Spreemann <gspreemann@gmail.com>2018-09-05 12:52:26 +0200
commitef5c01b599c6a6b23b1f3e92736ec67a6e62b55f (patch)
tree593f9ca6e7b661645f27243619652953b11e8a4f /include/gudhi/Persistent_cohomology.h
parentc524232f734de875d69e2f190f01a6c976024368 (diff)
GUDHI 2.3.0 as released by upstream in a tarball.upstream/2.3.0upstream/latest
Diffstat (limited to 'include/gudhi/Persistent_cohomology.h')
-rw-r--r--include/gudhi/Persistent_cohomology.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gudhi/Persistent_cohomology.h b/include/gudhi/Persistent_cohomology.h
index c68b5c0b..c51e47a5 100644
--- a/include/gudhi/Persistent_cohomology.h
+++ b/include/gudhi/Persistent_cohomology.h
@@ -300,7 +300,10 @@ class Persistent_cohomology {
// with multiplicity. We used to sum the coefficients directly in
// annotations_in_boundary by using a map, we now do it later.
typedef std::pair<Column *, int> annotation_t;
- thread_local std::vector<annotation_t> annotations_in_boundary;
+#ifdef GUDHI_CAN_USE_CXX11_THREAD_LOCAL
+ thread_local
+#endif // GUDHI_CAN_USE_CXX11_THREAD_LOCAL
+ std::vector<annotation_t> annotations_in_boundary;
annotations_in_boundary.clear();
int sign = 1 - 2 * (dim_sigma % 2); // \in {-1,1} provides the sign in the
// alternate sum in the boundary.