Ignore:
Timestamp:
Apr 11, 2000, 11:16:18 AM (25 years ago)
Author:
ansari
Message:

modif utilisation typeid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitstarray.cc

    r873 r874  
    107107    }
    108108  char type;
    109   if (strncmp( typeid(T).name(),"r_8",3)==0 || strncmp( typeid(T).name(),"double",6)==0 ) type='D';
     109  if ( typeid(T) == typeid(r_8) ) type='D';
    110110  else
    111     if (strncmp( typeid(T).name(),"r_4",3)==0 || strncmp( typeid(T).name(),"float",5)==0 )  type='E';
     111    if ( typeid(T) == typeid(r_4) )  type='E';
    112112    else
    113       if (strncmp( typeid(T).name(),"int_4",5)==0 || strncmp( typeid(T).name(),"int",3)==0 )  type='I';
     113      if ( typeid(T) == typeid(int_4) )  type='I';
    114114      else
    115115        {
Note: See TracChangeset for help on using the changeset viewer.