From 4dbad8e21e7aa0f99d8d6c70ddd0a8b4647c5ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 8 Nov 2010 14:42:49 +0000 Subject: [PATCH] add missing typedef for Inverse when use within Lazy. add comment about static variable --- .../include/CGAL/Algebraic_structure_traits.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h b/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h index c7f663e9e99..f68b2916164 100644 --- a/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h +++ b/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h @@ -125,7 +125,8 @@ class Algebraic_structure_traits_base< Type_, Null_tag > { typedef Null_functor Sqrt; typedef Null_functor Kth_root; typedef Null_functor Root_of; - typedef Null_functor Divides; + typedef Null_functor Divides; + typedef Null_functor Inverse; }; //! The template specialization that is used if the number type is @@ -469,6 +470,7 @@ class Algebraic_structure_traits_base< Type_, Field_tag > : public std::unary_function< Type, Type > { public: Type operator()( const Type& x ) const { + //warning THIS IS NOT THREAD SAFE static const Type& one = Type(1); return one/x; }