make it thread safe

This commit is contained in:
Michael Hemmer 2010-11-09 10:41:37 +00:00
parent f1549b69ba
commit 63de75bed2
1 changed files with 1 additions and 3 deletions

View File

@ -470,9 +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;
return Type(1)/x;
}
};