diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2018-09-09 05:51:46 +0200 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2018-09-09 05:51:46 +0200 |
commit | 75d365e9df3b9c25f48a475a53188668b5cd2951 (patch) | |
tree | 3906301decc85aeaedf90e140550f5836a6e7fac /include/gudhi/Persistent_cohomology.h | |
parent | 41482b4260b4aff3d6803e340d5c94fbefb9af67 (diff) | |
parent | ef5c01b599c6a6b23b1f3e92736ec67a6e62b55f (diff) |
Merge branch 'upstream/latest' into dfsg/latest
Diffstat (limited to 'include/gudhi/Persistent_cohomology.h')
-rw-r--r-- | include/gudhi/Persistent_cohomology.h | 5 |
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. |