From 69a0937e9f319da4ac77ee55e780840f08fb0a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 16 Apr 2015 09:17:56 +0200 Subject: [PATCH] fix initialization of static const variable of non-integral type --- Spatial_sorting/include/CGAL/Hilbert_sort_on_sphere_3.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Spatial_sorting/include/CGAL/Hilbert_sort_on_sphere_3.h b/Spatial_sorting/include/CGAL/Hilbert_sort_on_sphere_3.h index 98023865fe4..a9e1846c213 100644 --- a/Spatial_sorting/include/CGAL/Hilbert_sort_on_sphere_3.h +++ b/Spatial_sorting/include/CGAL/Hilbert_sort_on_sphere_3.h @@ -32,7 +32,7 @@ template class Hilbert_sort_on_sphere_3 { typedef typename K::Point_3 Point_3; - static const double _sqrt_of_one_over_three = 0.57735026919; + static const double _sqrt_of_one_over_three; // Face 1, x > sqrt(1/3) // Face 2, y > sqrt(1/3) @@ -111,7 +111,8 @@ public: *begin++ = vec[i][j]; } }; - +template +const double Hilbert_sort_on_sphere_3::_sqrt_of_one_over_three = 0.57735026919; } // namespace CGAL