Show
Ignore:
Timestamp:
07/02/08 06:36:12 (5 months ago)
Author:
dumas
Message:

added templated convert

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/linbox/linbox/field/givaro-zpz.h

    r2814 r2987  
    160160                 
    161161                double &convert (double& x, const Element& y) const 
    162                 { return x = (double) y; } 
     162                { return x = static_cast<double>(y); } 
     163 
     164                template<class Type> 
     165                Type &convert (Type& x, const Element& y) const 
     166                { return x = static_cast<Type>(y); } 
    163167                 
    164168