mirror of https://github.com/CGAL/cgal
add missing typedef for Inverse when use within Lazy.
add comment about static variable
This commit is contained in:
parent
adf5b2bc4a
commit
4dbad8e21e
|
|
@ -126,6 +126,7 @@ class Algebraic_structure_traits_base< Type_, Null_tag > {
|
||||||
typedef Null_functor Kth_root;
|
typedef Null_functor Kth_root;
|
||||||
typedef Null_functor Root_of;
|
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
|
//! 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 std::unary_function< Type, Type > {
|
||||||
public:
|
public:
|
||||||
Type operator()( const Type& x ) const {
|
Type operator()( const Type& x ) const {
|
||||||
|
//warning THIS IS NOT THREAD SAFE
|
||||||
static const Type& one = Type(1);
|
static const Type& one = Type(1);
|
||||||
return one/x;
|
return one/x;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue