summaryrefslogtreecommitdiff
path: root/src/Persistent_cohomology
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-08-09 14:40:20 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-08-09 14:40:20 +0000
commitb9bea456e64dcd9f1d06006cae66de7b03a15511 (patch)
tree2fec65d188e0dd57d8bd074f4b197e024cb74f0d /src/Persistent_cohomology
parent19845ecfdecf457005ee4a9a6b6d5b5321e0c6c1 (diff)
GUDHI_CAN_USE_CXX11_THREAD_LOCAL was missing in Persistent_cohomology::annotation_of_the_boundary
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3764 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 7d53de701470203e48f76896e2859d1df670564c
Diffstat (limited to 'src/Persistent_cohomology')
-rw-r--r--src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
index c68b5c0b..c51e47a5 100644
--- a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
+++ b/src/Persistent_cohomology/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.