fix initialization of static const variable of non-integral type

This commit is contained in:
Sébastien Loriot 2015-04-16 09:17:56 +02:00
parent 3c66842b77
commit 69a0937e9f
1 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ template <class K, class Hilbert_policy >
class Hilbert_sort_on_sphere_3 { class Hilbert_sort_on_sphere_3 {
typedef typename K::Point_3 Point_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 1, x > sqrt(1/3)
// Face 2, y > sqrt(1/3) // Face 2, y > sqrt(1/3)
@ -111,7 +111,8 @@ public:
*begin++ = vec[i][j]; *begin++ = vec[i][j];
} }
}; };
template <class K, class Hilbert_policy >
const double Hilbert_sort_on_sphere_3<K,Hilbert_policy>::_sqrt_of_one_over_three = 0.57735026919;
} // namespace CGAL } // namespace CGAL