Changeset 1875 in Sophya
- Timestamp:
- Jan 20, 2002, 12:43:18 AM (24 years ago)
- Location:
- trunk/SophyaLib/BaseTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/dvlist.cc
r1871 r1875 223 223 if (it == mvlist.end()) return(def); 224 224 #if defined(__GNUG__) 225 //complex<r_8> z;226 //z = (*it).second.elval;227 return( (*it).second.elval.ToComplexD());225 complex<r_8> z; 226 z = (*it).second.elval; 227 return(z); 228 228 #else 229 229 return( (complex<r_8>)(*it).second.elval ); -
trunk/SophyaLib/BaseTools/mutyv.h
r1871 r1875 60 60 61 61 inline operator uint_2() const { return((uint_2)iv); } 62 inline operator uint_4() const { return((uint_4)iv); } 62 63 inline operator uint_8() const { return((uint_8)iv); } 63 64 inline operator int_4() const { return((int_4)iv); } … … 69 70 70 71 operator string() const ; 71 72 /* g++ a du mal avec les operateurs de conversion complex<T> */73 /* On definit donc les deux methodes de conversion nommees explicitement */74 inline complex<r_4> ToComplexF() const { return(complex<r_4>((r_4)dv, (r_4)dv_im)); }75 inline complex<r_8> ToComplexD() const { return(complex<r_8>(dv, dv_im)); }76 72 77 73 inline MTVType Type() const { return typ; }
Note:
See TracChangeset
for help on using the changeset viewer.