From b9bea456e64dcd9f1d06006cae66de7b03a15511 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Thu, 9 Aug 2018 14:40:20 +0000 Subject: 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 --- src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Persistent_cohomology') 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 annotation_t; - thread_local std::vector annotations_in_boundary; +#ifdef GUDHI_CAN_USE_CXX11_THREAD_LOCAL + thread_local +#endif // GUDHI_CAN_USE_CXX11_THREAD_LOCAL + std::vector 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. -- cgit v1.2.3