Changeset 1771 for trunk


Ignore:
Timestamp:
20/11/11 00:14:27 (6 months ago)
Author:
Freddie Akeroyd
Message:

Add char type for win32 - not sure why it was commented out, but guess it may have conflicted with int8_t in the past? . Refs #303

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/cpp/NeXusFile.cpp

    r1735 r1771  
    5656  NXnumtype getType(NumT number) { 
    5757    stringstream msg; 
    58     msg << "NeXus::getType() does not know type of " << number; 
     58        msg << "NeXus::getType() does not know type of " << typeid(number).name(); 
    5959    throw Exception(msg.str()); 
    6060  } 
    6161 
    62 #ifndef _MSC_VER 
    6362  template<> 
    6463  NXDLL_EXPORT NXnumtype getType(char number) { 
    6564    return CHAR; 
    66     /* This causes runtime errors for getAttr(string, string). 
    67     stringstream msg; 
    68     msg << "NeXus::getType() does not know type of \"char\" " << number; 
    69     throw Exception(msg.str()); 
    70      */ 
    71   } 
    72 #endif 
    73  /* _MSC_VER */ 
     65  } 
    7466 
    7567  // template specialisations for types we know  
Note: See TracChangeset for help on using the changeset viewer.